dos33fsprogs/graphics/hgr/budge3d/zp.inc

67 lines
1.3 KiB
PHP
Raw Normal View History

2023-01-06 20:37:08 +00:00
; defines
2023-01-06 13:25:04 +00:00
OpDEY = $88 ; DEY opcode
OpINY = $c8 ; INY opcode
OpDEX = $ca ; DEX opcode
OpINX = $e8 ; INX opcode
OpNOP = $ea ; NOP opcode
; zero page addresses
2023-01-06 20:37:08 +00:00
YSAVE = $00
HPTR = $06
HPAGE = $18 ; hi-res page ($20 or $40) ; FIXME
PTR1 = $1a
PTR2 = $1c
XSTART = $1c
YSTART = $1d
XEND = $1e
YEND = $1f
2023-01-06 13:25:04 +00:00
MON_WNDLEFT = $20 ; left column of scroll window
MON_WNDWDTH = $21 ; width of scroll window
MON_WNDTOP = $22 ; top of scroll window
MON_WNDBTM = $23 ; bottom of scroll window
MON_CH = $24 ; cursor horizontal displacement
MON_CV = $25 ; cursor vertical displacement
2023-01-07 02:56:36 +00:00
GBASL = $26
GBASH = $27
2023-01-06 20:37:08 +00:00
2023-01-06 13:25:04 +00:00
MON_CSWL = $36 ; character output hook (lo)
MON_CSWH = $37 ; character output hook (hi)
DELTA_X = $3c
DELTA_Y = $3d
LINE_ADJ = $3e
2023-01-06 20:37:08 +00:00
2023-01-06 13:25:04 +00:00
LINE_INDEX = $43
2023-01-06 20:37:08 +00:00
FIRST_LINE = $45 ; FIXME: what if interrupt?
2023-01-06 13:25:04 +00:00
LAST_LINE = $46
2023-01-06 20:37:08 +00:00
BAS_ARYTAB = $6b ; pointer to start of Applesoft array space (2b)
2023-01-07 02:56:36 +00:00
HGR_X = $E0
2023-01-06 20:37:08 +00:00
; Clear variables
XC = $19 ; transformed X coordinate
YC = $1a ; transformed Y coordinate
ZC = $1b ; transformed Z coordinate
SCALE = $1c ; $00-0F, where $0F is full size
XPOSN = $1d ; X coordinate (0-255)
YPOSN = $1e ; Y coordinate (0-191)
ZROT = $1f ; Z rotation ($00-1B)
YROT = $3c ; Y rotation ($00-1B)
XROT = $3d ; X rotation ($00-1B)
ROT_TMP = $3f ; 4 bytes long
OUT_INDEX = $43
FIRST_POINT = $45
LAST_POINT = $46