mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-03 18:29:53 +00:00
e1f10efbbb
probably a mistake, was a huge pain, but freed up some room
154 lines
2.8 KiB
PHP
154 lines
2.8 KiB
PHP
;; Zero Page
|
|
|
|
;; ZX02 addresses
|
|
|
|
ZP=$00
|
|
|
|
offset = ZP+0
|
|
ZX0_src = ZP+2
|
|
ZX0_dst = ZP+4
|
|
bitr = ZP+6
|
|
pntr = ZP+7
|
|
|
|
; disk code
|
|
|
|
NIBCOUNT = $09
|
|
CURRENT_DRIVE = $0A
|
|
DRIVE1_DISK = $0B
|
|
DRIVE2_DISK = $0C
|
|
DRIVE1_TRACK = $0D
|
|
DRIVE2_TRACK = $0E
|
|
|
|
|
|
|
|
;; 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
|
|
X_LEFT = $2C
|
|
V2 = $2D
|
|
MASK = $2E
|
|
COLOR_MASK = $2F
|
|
COLOR = $30
|
|
|
|
SEEDL = $4e
|
|
SEEDH = $4f
|
|
XMAX = $50
|
|
|
|
|
|
; note 70-7f used by disk code (?) do we need to preserve?
|
|
|
|
; We have to save/restore the following values
|
|
; when loading/storing from disk
|
|
|
|
WHICH_LOAD = $80 ; which file to load
|
|
|
|
DIRECTION = $81
|
|
DIRECTION_N = $1
|
|
DIRECTION_S = $2
|
|
DIRECTION_E = $4
|
|
DIRECTION_W = $8
|
|
DIRECTION_ANY=$f
|
|
DIRECTION_ONLY_POINT = $40 ; do not change pointer to grab
|
|
DIRECTION_SPLIT = $80 ; split text/graphics
|
|
|
|
LOCATION = $82
|
|
|
|
JS_BUTTON_STATE = $83
|
|
CURRENT_DISK = $84
|
|
JOYSTICK_ENABLED = $85
|
|
SOUND_STATUS = $86
|
|
SOUND_DISABLED = $80
|
|
SOUND_IN_LC = $01 ; $01 sound effects in language card
|
|
SOUND_MOCKINGBOARD = $02 ; mockingboard detected
|
|
|
|
SCENE_COUNT = $87
|
|
ANIMATE_FRAME = $88
|
|
LEVEL_OVER = $89
|
|
GAME_OVER = $FF
|
|
TOUCHED_ENEMY = $80
|
|
NEXT_LEVEL = $01
|
|
LOCATIONS_L = $8A
|
|
LOCATIONS_H = $8B
|
|
|
|
DISP_PAGE = $8C
|
|
DRAW_PAGE = $8D
|
|
|
|
WHICH_OVERLAY = $8E
|
|
|
|
;HOLDING_PAGE = $90
|
|
; HOLDING_RED_PAGE = $80
|
|
; HOLDING_BLUE_PAGE = $40
|
|
; HOLDING_WHITE_PAGE = $C0
|
|
;HOLDING_ITEM = $91
|
|
; HOLDING_KEY = $04
|
|
; HOLDING_LIT_MATCH = $02
|
|
; HOLDING_MATCH = $01
|
|
|
|
|
|
|
|
|
|
; Riven zero page addresses
|
|
|
|
FRAMEL = $90
|
|
FRAMEH = $91
|
|
CURSOR_X = $92
|
|
CURSOR_Y = $93
|
|
XPOS = $94
|
|
YPOS = $95
|
|
LOCATION_STRUCT_L = $96
|
|
LOCATION_STRUCT_H = $97
|
|
IN_SPECIAL = $98
|
|
CURSOR_VISIBLE = $99
|
|
IN_LEFT = $9A
|
|
IN_RIGHT = $9B
|
|
|
|
UPDATE_POINTER = $9C
|
|
APPLEII_MODEL = $9D
|
|
HGR_PAGE = $9E
|
|
WHICH_SLOT = $9F
|
|
|
|
|
|
TEMP = $F9
|
|
MASKL = $FA
|
|
MASKH = $FB
|
|
INL = $FC
|
|
INH = $FD
|
|
OUTL = $FE
|
|
OUTH = $FF
|
|
|
|
; read any file slot 6 version
|
|
; based on FASTLD6 and RTS copyright (c) Peter Ferrie 2011-2013,2018
|
|
|
|
; modified to assemble with ca65 -- vmw
|
|
; added code to patch it to run from current disk slot -- vmw
|
|
|
|
.if 0
|
|
|
|
adrlo = $26 ; constant from boot prom
|
|
adrhi = $27 ; constant from boot prom
|
|
tmpsec = $3c ; constant from boot prom
|
|
reqsec = $3d ; constant from boot prom
|
|
sizelo = $44
|
|
sizehi = $45
|
|
secsize = $46
|
|
|
|
ldsizel = $70
|
|
ldsizeh = $71
|
|
namlo = $7b
|
|
namhi = $7c
|
|
step = $7d ; state for stepper motor
|
|
tmptrk = $7e ; temporary copy of current track
|
|
phase = $7f ; current phase for /seek
|
|
|
|
.endif
|