aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/gbos.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gbos.inc b/include/gbos.inc
index 74eee8e..049a4bc 100644
--- a/include/gbos.inc
+++ b/include/gbos.inc
@@ -10,6 +10,7 @@ DEF GBOS_INC EQU 1
; -----------------------------------------------------------------------------
DEF rIF EQU $FF0F ; interrupt flags
DEF rIE EQU $FFFF ; interrupt enable
+DEF rDIV EQU $FF04 ; divider register: free-running 8-bit @ 16384 Hz
DEF rSVBK EQU $FF70 ; CGB WRAM bank select ($D000-$DFFF): 1..7
DEF wCurMask EQU $D589 ; term/osk: cursor underline bits OR'd into a tile's last row
DEF OSK_DOCK EQU 3 ; on-screen keyboard height in rows (dock at the bottom)
@@ -131,7 +132,8 @@ DEF SYS_SRECV EQU 30 ; link-port: receive one byte (-> A=byte, blocks)
DEF SYS_SRECVNB EQU 31 ; link-port: receive, non-blocking (-> A=byte, CF=none)
DEF SYS_POLLIN EQU 32 ; poll OSK for a typed char (-> A=char or 0)
DEF SYS_NET EQU 33 ; socket layer (DE=&netreq -> A=result)
-DEF SYS_MAX EQU 34
+DEF SYS_SLEEP EQU 34 ; cooperative delay (B = 1/64-second units)
+DEF SYS_MAX EQU 35
; ---- socket layer (SYS_NET) --------------------------------------------------
; netreq struct (in caller RAM; DE points to it):