SOURCE VIEWER

defs.inc

Original bytes preserved. This is a browser-readable view.

DOWNLOAD ORIGINAL ↓

; Chapter 01 calculator-owned symbols and shared-provider bindings.
; All addresses below are bank-1 RAM under UA=&H14 unless noted.
;
; Calculator: 2000..200E (state), 2020..203A (format buffers).
; Shared splash: 27C0..27C2; shared keyboard: borrowed 09E4 at UA54.
; These regions do not overlap.  Preserve historical RAM addresses.

OFFCHK:   EQU     &H04EF
EDCSR:    EQU     &H08CB     ; unused LCD adapter entry; library contract

WS_OP1:   EQU     &H2000     ; 4 bytes, current value/result
WS_OP2:   EQU     &H2004     ; 4 bytes
WS_OPER:  EQU     &H2008     ; 1 byte, ASCII operator or zero
WS_STATE: EQU     &H2009     ; 0=OP1, 1=OP2, 2=RESULT
WS_LEN1:  EQU     &H200A     ; canonical decimal length, 0..10
WS_LEN2:  EQU     &H200B
WS_CUR:   EQU     &H200C     ; original underline cursor toggle
WS_TICK:  EQU     &H200D     ; last stable TM sample for cursor blink

FMT1:     EQU     &H2020     ; u32 decimal formatter output (11 bytes)
FMT2:     EQU     &H2030

; The shared splash service owns these two temporary fields.
SPL_PTR:  EQU     &H27C0     ; 2-byte ROM pointer
SPL_WAITN:EQU     &H27C2     ; 1-byte TM transition count