From 046821ff7af4fc665528db8757e3467776a95245 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 17 Oct 2024 20:35:12 -0400 Subject: [PATCH] add fastcall-ish macro for light functions only does a stack frame setup with no locals space --- include/cdecl16.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/cdecl16.inc b/include/cdecl16.inc index 60583ad..d79a786 100644 --- a/include/cdecl16.inc +++ b/include/cdecl16.inc @@ -54,4 +54,18 @@ pop cx pop ax %endmacro +%endif + +%ifnmacro __FASTCALL16_ENTRY +%macro __FASTCALL16_ENTRY 0 + push bp + mov bp, sp +%endmacro +%endif + +%ifnmacro __FASTCALL16_EXIT +%macro __FASTCALL16_EXIT 0 + mov sp, bp + pop bp +%endmacro %endif \ No newline at end of file