Cosmos/source/Cosmos.Debug.DebugStub/SerialHelpers.asm
Matthijs ter Woord 8a2d8a1403 .
2016-06-12 09:46:11 -04:00

115 lines
2.2 KiB
NASM

; Generated at 6/12/2016 9:42:10 AM
DebugStub_ComReadEAX:
Call DebugStub_ComReadAL
ror dword EAX, 0x8
Call DebugStub_ComReadAL
ror dword EAX, 0x8
Call DebugStub_ComReadAL
ror dword EAX, 0x8
Call DebugStub_ComReadAL
ror dword EAX, 0x8
DebugStub_ComReadEAX_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComReadEAX_Exit
Ret
DebugStub_ComRead8:
Call DebugStub_ComReadAL
Mov [EDI + 0], AL
Add EDI, 1
DebugStub_ComRead8_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComRead8_Exit
Ret
DebugStub_ComRead16:
Call DebugStub_ComRead8
Call DebugStub_ComRead8
DebugStub_ComRead16_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComRead16_Exit
Ret
DebugStub_ComRead32:
Call DebugStub_ComRead8
Call DebugStub_ComRead8
Call DebugStub_ComRead8
Call DebugStub_ComRead8
DebugStub_ComRead32_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComRead32_Exit
Ret
DebugStub_ComWriteAL:
push dword ESI
push dword EAX
Mov ESI, ESP
Call DebugStub_ComWrite8
Pop EAX
Pop ESI
DebugStub_ComWriteAL_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWriteAL_Exit
Ret
DebugStub_ComWriteAX:
push dword EAX
Mov ESI, ESP
Call DebugStub_ComWrite16
Pop EAX
DebugStub_ComWriteAX_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWriteAX_Exit
Ret
DebugStub_ComWriteEAX:
push dword EAX
Mov ESI, ESP
Call DebugStub_ComWrite32
Pop EAX
DebugStub_ComWriteEAX_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWriteEAX_Exit
Ret
DebugStub_ComWrite16:
Call DebugStub_ComWrite8
Call DebugStub_ComWrite8
DebugStub_ComWrite16_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWrite16_Exit
Ret
DebugStub_ComWrite32:
Call DebugStub_ComWrite8
Call DebugStub_ComWrite8
Call DebugStub_ComWrite8
Call DebugStub_ComWrite8
DebugStub_ComWrite32_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWrite32_Exit
Ret
DebugStub_ComWriteX:
DebugStub_ComWriteX_More:
Call DebugStub_ComWrite8
Dec ECX
JNE near DebugStub_ComWriteX_More
DebugStub_ComWriteX_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComWriteX_Exit
Ret