Cosmos/source2/Compiler/Cosmos.Compiler.DebugStub/Screen.xs
2012-07-13 16:15:01 +00:00

36 lines
593 B
Text

Group DebugStub
const VidBase = $B8000
var .DebugWaitMsg = 'Waiting for debugger connection...'
function Cls {
ESI = #VidBase
// End of Video Area
// VidBase + 25 * 80 * 2 = B8FA0
while ESI < $B8FA0 {
// Text
ESI[0] = $00
ESI++
// Colour
ESI[0] = $0A
ESI++
}
}
function DisplayWaitMsg {
ESI = @..DebugWaitMsg
EDI = #VidBase
// 10 lines down, 20 cols in (10 * 80 + 20) * 2)
EDI + 1640
// Read and copy string till 0 terminator
while byte ESI[0] != 0 {
AL = ESI[0]
EDI[0] = AL
ESI++
EDI + 2
}
}