Skip to content

Commit 1a48dd0

Browse files
committed
fixed routine '_hd_xfer_out' in Kernel/platform/platform-trs80/trs80.s:
it hanged on real hardware (Model 4P with FreHD) because a busy wait loop was missing after the OTIR instruction.
1 parent 99c4384 commit 1a48dd0

File tree

1 file changed

+6
-0
lines changed
  • Kernel/platform/platform-trs80

1 file changed

+6
-0
lines changed

Kernel/platform/platform-trs80/trs80.s

+6
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ _hd_xfer_out:
197197
call nz, map_proc_a
198198
ld bc, #0xC8 ; 256 bytes to 0xC8
199199
otir
200+
xfer_out_wait: ; busy wait after OTIR
201+
ex (sp), hl
202+
ex (sp), hl
203+
in a,(0xCF)
204+
rlca
205+
jr c, xfer_out_wait
200206
call map_kernel
201207
ret
202208

0 commit comments

Comments
 (0)