emudbg no longer clobbers r1

This commit is contained in:
Irmen de Jong 2023-11-20 00:20:48 +01:00
parent a6756d2cea
commit ab4bcdf12d

View File

@ -31,10 +31,13 @@ emudbg {
sub console_write(str isoString) {
; note: make sure the text is in Iso encoding.
if is_emulator() {
cx16.r1 = isoString
while @(cx16.r1) {
EMU_CPUCLK_U = @(cx16.r1)
cx16.r1++
ubyte chr
repeat {
chr = @(isoString)
if_z
break
EMU_CPUCLK_U = chr
isoString++
}
}
}