__CDECL16_ENTRY now takes 0-1 params, if you give it a size it sets up local varible redzone
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user