vt25_compat.inc
Original bytes preserved. This is a browser-readable view.
; Apple Polisher compatibility services for VT25 read-only smoke test.
; UA=55; no SYS540 cursor overlay or UART access.
SRC_RAM: EQU 0
KEYQ: EQU &H51
KEYQLC: EQU &H71
; VT24 raw polling observes the same INKEY flags as the app.
K540_RAW:
JP INKEY
; KEY_WAIT can be called directly from command mode, without RAW.
; $0 is returned key; $17=0 (no BRK classification in this shim).
KEY_WAIT:
VTK_SCAN:
CAL INKEY
AN $17,$17
JR Z,VTK_SCAN
LD $24,$0
CAL WAIT_RELEASE
LD $0,$24
LD $17,0
RTN
; Timer/cursor overlay is deferred; preserve VT24 navigation.
SYS540_INIT:
SYS540_HIDE:
SYS540_STOP:
SYS540_TOGGLE:
SYS540_PLACE:
SYS540_SHOW:
CUR_OFF:
RTN
SYS540_POLL:
LD $18,0
RTN
; VT24 prompts use row-4 LCD writes via app firmware wrappers.
LCD_ROM32:
LCD_PUTZ:
JP PRINTZ
BLANK32:
DB " ",0
; end of include