dos33fsprogs/ootw/zp.inc
2019-03-24 01:14:23 -04:00

214 lines
3.2 KiB
PHP

;; Zero Page
;; LZ4 addresses
LZ4_SRC = $00
LZ4_DST = $02
LZ4_END = $04
WHICH_LOAD = $05
COUNT = $06
DELTA = $08
;; Zero page monitor routines addresses
WNDLFT = $20
WNDWDTH = $21
WNDTOP = $22
WNDBTM = $23
CH = $24
CV = $25
GBASL = $26
GBASH = $27
BASL = $28
BASH = $29
H2 = $2C
V2 = $2D
MASK = $2E
COLOR_MASK = $2F
COLOR = $30
SEEDL = $4e
SEEDH = $4f
XMAX = $50
BEAST_X = $51
BEAST_GAIT = $52
BEAST_COUNT = $53
BEAST_STATE = $54
B_STANDING = $00
B_RUNNING = $01
B_FALLING = $02
B_DEAD = $03
BEAST_DIRECTION = $55
;INVFLG = $32
; dos33 zero page = 26-2f, 35-38, 3e 3f 40-4d
; overlap applesoft 67-6a,6f,70,af,b0,ca-cd,d8
; DOS33: Confirmed kills $68
RWTSL = $60
RWTSH = $61
DOSBUFL = $62
DOSBUFH = $63
FILEML = $64
FILEMH = $65
FRAMEL = $60
FRAMEH = $61
WAITING = $62
LETTERL = $63
LETTERH = $64
LETTERX = $65
LETTERY = $66
LETTERD = $67
LETTER = $68
BLARGH = $69
;FACTOR_I = $66
;FACTOR_F = $67
;DX_I = $68
;DX_F = $69
;SPACEX_I = $6A
;SPACEX_F = $6B
;CX_I = $6C
;CX_F = $6D
;DY_I = $6E
;DY_F = $6F
INTRO_REPEAT = $7E
ZPOS = $78
REGISTER_DUMP = $70
A_FINE_TONE = $70
A_COARSE_TONE = $71
B_FINE_TONE = $72
B_COARSE_TONE = $73
C_FINE_TONE = $74
C_COARSE_TONE = $75
NOISE = $76
ENABLE = $77
A_VOLUME = $78
B_VOLUME = $79
C_VOLUME = $7A
ENVELOPE_FINE = $7B
ENVELOPE_COARSE = $7C
ENVELOPE_SHAPE = $7D
COPY_OFFSET = $7E
DECODER_STATE = $7F
REGISTER_DUMP2 = $80
A_FINE_TONE2 = $80
A_COARSE_TONE2 = $81
B_FINE_TONE2 = $82
B_COARSE_TONE2 = $83
C_FINE_TONE2 = $84
C_COARSE_TONE2 = $85
NOISE2 = $86
ENABLE2 = $87
A_VOLUME2 = $88
B_VOLUME2 = $89
C_VOLUME2 = $8A
ENVELOPE_FINE2 = $8B
ENVELOPE_COARS2 = $8C
ENVELOPE_SHAPE2 = $8D
LYRICSL = $8E
LYRICSH = $8F
FRAME_COUNT = $90
MB_VALUE = $91
MB_ADDRL = $91
MB_ADDRH = $92
DONE_PLAYING = $93
MB_CHUNK_OFFSET = $94
MB_FRAME = $94
MB_PATTERN = $95
CHUNKSIZE = $95
LZ4_DONE = $96
DECODE_ERROR = $97
COPY_TIME = $98
DECOMPRESS_TIME = $99
TIME_TAKEN = $9A
LYRICS_ACTIVE = $9B
;FORTYCOL = $9C
CURSOR = $9D
; More zero-page addresses
; we try not to conflict with anything DOS, MONITOR or BASIC related
LEFT_LIMIT = $E0
RIGHT_LIMIT = $E1
WHICH_SLUG = $E2
WHICH_CAVE = $E3
WHICH_JAIL = $E3
BEAST_OUT = $E4
GAME_OVER = $E5
EQUAKE_PROGRESS = $E6
EARTH_OFFSET = $E7
DNA_OUT = $E5
DNA_PROGRESS = $E6
DNA_COUNT = $E7
CURSOR_COUNT = $E7
PARTICLE_COUNT = $E7
MESSAGE_CURRENT = $E5
TIME_COUNT = $E6
MESSAGE_COUNT = $E7
BOULDER_X = $E8
BOULDER_Y = $E9
PHYSICIST_STATE = $EA
P_STANDING = $00
P_WALKING = $01
P_RUNNING = $02
P_CROUCHING = $03
P_KICKING = $04
P_JUMPING = $05 ; no keypress
P_COLLAPSING = $06 ; no keypress
P_FALLING = $07 ; no keypress
P_SWINGING = $08 ; no keypress
BEFORE_SWING = $EB
CUTFRAME = $EC
DISP_PAGE = $ED
DRAW_PAGE = $EE
OFFSET = $EF
INTRO_LOOPL = $F0
INTRO_LOOPH = $F1
INTRO_LOOPER = $F7
STATIC_LOOPER = $F8
PHYSICIST_X = $F0
PHYSICIST_Y = $F1
SPRITETEMP = $F2
XPOS = $F3
YPOS = $F4
DIRECTION = $F5
GAIT = $F6
TENTACLE_X = $F7
LEVELEND_PROGRESS = $F8
SWING_PROGRESS = $F8
TENTACLE_PROGRESS = $F8
ELEVATOR_CYCLE = $F8
TENTACLE_GRAB = $F9
ELEVATOR_COUNT = $F9
TEMP = $FA
TEMPY = $FB
INL = $FC
INH = $FD
OUTL = $FE
OUTH = $FF