somewhat of a cludge, but added a macro to save all caller saved regs

This commit is contained in:
2024-10-11 14:25:01 -04:00
parent df3b8dfc0c
commit e8fb22c826
2 changed files with 37 additions and 3 deletions

View File

@@ -38,4 +38,20 @@
mov sp, bp
pop bp
%endmacro
%endif
%ifnmacro __CDECL16_CALLER_SAVE
%macro __CDECL16_CALLER_SAVE 0
push ax
push cx
push dx
%endmacro
%endif
%ifnmacro __CDECL16_CALLER_RESTORE
%macro __CDECL16_CALLER_RESTORE 0
pop dx
pop cx
pop ax
%endmacro
%endif