small fixes in debugstub.

This commit is contained in:
Matthijs ter Woord 2015-02-03 18:44:46 +01:00
parent a1cdb6f983
commit 2c7c580b9f
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,4 @@
; Generated at 1-1-2015 12:56:21
; Generated at 3-2-2015 18:02:14
@ -40,10 +40,12 @@ mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_ComRead3
Ret
DebugStub_ComWriteAL:
Push ESI
Push 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

View file

@ -32,14 +32,16 @@ function ComRead32 {
// Input: AL
// Output: None
// Modifies: EDX, ESI
// Modifies: EDX
function ComWriteAL {
+EAX
ESI = ESP
+ESI
+EAX
ESI = ESP
ComWrite8()
// Is a local var, cant use Return(4). X// issues the return.
// This also allows the function to preserve EAX.
-EAX
-ESI
}
function ComWriteAX {
// Input: AX