Cosmos/source/Cosmos.Debug.DebugStub/Utilities.asm
2016-03-13 12:27:58 -05:00

22 lines
473 B
NASM

; Generated at 3/12/2016 8:37:32 PM
DebugStub_CheckStack:
Add eax, 4
Mov EBX, EBP
Add EBX, EAX
Cmp EBX, ESP
JE 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