mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 18:51:41 +00:00
small fixes in debugstub.
This commit is contained in:
parent
a1cdb6f983
commit
2c7c580b9f
2 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue