From d7b29d911360f2a555d48f1c699bc963edd7aaf8 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Fri, 5 Sep 2025 11:44:30 -0400 Subject: [PATCH] __CDECL16_ENTRY now takes 0-1 params, if you give it a size it sets up local varible redzone --- include/cdecl16.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/cdecl16.inc b/include/cdecl16.inc index 798a869..6f542c1 100644 --- a/include/cdecl16.inc +++ b/include/cdecl16.inc @@ -14,14 +14,17 @@ ; along with this program. If not, see . %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