Cosmos/source/Cosmos.Debug.DebugStub/Utilities.asm
Matthijs ter Woord f9dfb1bcf7 Use near jumps.
2016-06-11 16:17:05 -04:00

23 lines
480 B
NASM

; Generated at 6/11/2016 4:16:44 PM
DebugStub_CheckStack:
Add eax, 4
Mov EBX, EBP
Add EBX, EAX
Cmp EBX, ESP
JE near DebugStub_CheckStack_Block1_End
Mov EAX, [ESP + 0]
Mov [DebugStub_CallerEIP], EAX
Call DebugStub_SendStackCorruptionOccurred
DebugStub_CheckStack_halt:
Jmp DebugStub_CheckStack_halt
DebugStub_CheckStack_Block1_End:
DebugStub_CheckStack_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_CheckStack_Exit
Ret