Simple monitor program

This commit is contained in:
Joppe Blondel
2026-09-28 13:36:52 +02:00
parent 67ec3c9a65
commit bedcbfdd24
6 changed files with 368 additions and 76 deletions
+6
View File
@@ -7,6 +7,7 @@ DELAY_LOOPS_PER_MS = 40
.globl _io_in
.globl _enable_interrupts
.globl _disable_interrupts
.globl _jump_to
.globl s__DATA
.globl l__DATA
.globl s__INITIALIZER
@@ -153,6 +154,11 @@ _io_in::
in a, (c)
ret
; Execute code at HL. Because this routine is entered with CALL, a RET in the
; target returns to the monitor immediately after jump_to().
_jump_to::
jp (hl)
; Approximate millisecond delay.
; Input: HL = delay in milliseconds.
_delay_ms::