From: Alan Cox Date: Mon, 22 Dec 2014 13:04:09 +0000 (+0000) Subject: trs80: CRTC reg 0 was not being set X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=071e8ef9b68d7d6939f1b69690be2ef3b455cd7b;p=FUZIX.git trs80: CRTC reg 0 was not being set Backported from Microbee port --- diff --git a/Kernel/platform-trs80/trs80.s b/Kernel/platform-trs80/trs80.s index 7a77176e..3d73c1dd 100644 --- a/Kernel/platform-trs80/trs80.s +++ b/Kernel/platform-trs80/trs80.s @@ -78,12 +78,13 @@ init_early: ; load the 6845 parameters ld hl, #_ctc6845 - ld bc, #1588 + ld bc, #0x1088 ctcloop: out (c), b ; register ld a, (hl) out (0x89), a ; data inc hl - djnz ctcloop + dec b + jr nc, ctcloop ; clear screen ld hl, #0xF800