Added note about state handling
authorLukas Krickl <lukas@krickl.dev>
Thu, 27 Mar 2025 10:53:38 +0000 (11:53 +0100)
committerLukas Krickl <lukas@krickl.dev>
Thu, 27 Mar 2025 10:53:38 +0000 (11:53 +0100)
src/defs.s

index 3a672f0353993f85508fc5221c8ef33959e951f0..f76d1f3569003f056be19dc405d1cbc1babf4069 100644 (file)
 .se 0
   ; time until next state 
 .de st_time, 1
-  ; state routine 
+  ; state routine
+  ; it can return 0000 in hl
+  ; or a new state address in hl
+  ; if hl is not 0000 after
+  ; the calling state's address
+  ; will be set to hl immediatly 
 .de st_routine, 2
   ; next state
 .de st_next, 2