Simple monitor program
This commit is contained in:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user