.import __RAM_START__, __RAM_SIZE__ ; Linker generated
.import initlib, donelib
- .import pushax
.import callmain
- .import _MainLoop, _EnterDeskTop
+ .import _EnterDeskTop
.import zerobss
.importzp sp
.export _exit
cli
jsr callmain
-; Call module destructors. This is also the _exit entry which must be called
-; explicitly by the code.
+; Call module destructors.
_exit: jsr donelib ; Run module destructors
.segment "EXTZP", zeropage
-cursor_x: .res 2 ; Cursor column (word)
-cursor_y: .res 1 ; Cursor row
+cursor_x: .res 2 ; Cursor column (0-319/639)
+cursor_y: .res 1 ; Cursor row (0-199)
cursor_flag: .res 1 ; Cursor on/off (0-off)
cursor_c: .res 1 ; Cursor column (0-39/79)