__CDECL16_ENTRY now takes 0-1 params, if you give it a size it sets up local varible redzone

This commit is contained in:
2025-09-05 11:44:30 -04:00
parent 69d82dc0c2
commit d7b29d9113

View File

@@ -14,14 +14,17 @@
; along with this program. If not, see <https://www.gnu.org/licenses/>.
%ifnmacro __CDECL16_ENTRY
%macro __CDECL16_ENTRY 0
%macro __CDECL16_ENTRY 0-1
push bp
mov bp, sp
sub sp, 0x10
push si
push di
push bx
%if %0 = 1
sub sp, %1 ; reserve locals only when needed
%endif
%endmacro
%endif