Code: Select all
EnableASM
ss:
Procedure Tst(x)
PUSH dword 2
MOV eax,l_ss
PUSH eax
PUSH x
POP eax
ADD esp,8
ProcedureReturn
EndProcedure
Debug Tst(1234)
Code: Select all
EnableASM
ss:
Procedure Tst(x)
PUSH dword 2
MOV eax,l_ss
PUSH eax
PUSH x
POP eax
ADD esp,8
ProcedureReturn
EndProcedure
Debug Tst(1234)
Code: Select all
EnableASM
ss:
DisableDebugger
Procedure Tst(x)
PUSH dword 2
MOV eax,l_ss
PUSH eax
;PUSH x ; becomes PUSH dword [esp+4]
PUSH dword [esp+12]
POP eax
ADD esp,8
ProcedureReturn
EndProcedure
EnableDebugger
x = Tst(1234)
Debug x