remove invoke macro for now

This commit is contained in:
2025-09-07 16:21:19 -04:00
parent 766c67c041
commit 68c8200aa4

View File

@@ -96,28 +96,6 @@
%endmacro %endmacro
%endif %endif
; __CDECL16_INVOKE func, arg1[, arg2 ...]
; pushes args right-to-left, calls, then add sp by (#args)*2
; !!! warning for word sized args only !!!
%ifnmacro __CDECL16_INVOKE
%macro __CDECL16_INVOKE 1-*
%push __CDECL16_INVOKE
%define %$fn %1
%assign %$argc %0-1
%rotate -1 ; drop function name; %1.. are args
%rep %$argc
%rotate -1
push %1
%endrep
call %$fn
%if %$argc
add sp, %$argc*2
%endif
%pop
%endmacro
%endif
%ifnmacro __CDECL16_CLOB %ifnmacro __CDECL16_CLOB
; Save registers in the order listed. Supports "flags" as a pseudo-reg. ; Save registers in the order listed. Supports "flags" as a pseudo-reg.
%macro __CDECL16_CLOB 1-* %macro __CDECL16_CLOB 1-*