Cosmos/source2/Compiler/Cosmos.Compiler.DebugStub/Screen.asm
2012-07-13 15:08:25 +00:00

39 lines
771 B
NASM

DebugWaitMsg db "Waiting for debugger connection..."
DebugStub_Const_VidBase equ 0xB8000
DebugStub_Cls:
Mov ESI, DebugStub_Const_VidBase
DebugStub_Cls_Block1Begin:
Cmp dword ESI, 0xB8FA0
JAE DebugStub_Cls_Block1End
Mov dword [ESI + 0], 0x00
Inc ESI
Mov dword [ESI + 0], 0x0A
Inc ESI
jmp DebugStub_Cls_Block1Begin
DebugStub_Cls_Block1End:
DebugStub_Cls_Exit:
Ret
DebugStub_DisplayWaitMsg:
Mov ESI, DebugWaitMsg
Mov EDI, DebugStub_Const_VidBase
Add EDI, 1640
DebugStub_DisplayWaitMsg_Block2Begin:
Cmp dword [ESI + 0], 0
JE DebugStub_DisplayWaitMsg_Block2End
Mov AL, [ESI + 0]
Mov [EDI + 0], AL
Inc ESI
Add EDI, 2
jmp DebugStub_DisplayWaitMsg_Block2Begin
DebugStub_DisplayWaitMsg_Block2End:
DebugStub_DisplayWaitMsg_Exit:
Ret