dos33fsprogs/demos/second/zp.inc

235 lines
4.1 KiB
PHP
Raw Normal View History

2023-11-01 01:57:26 +00:00
;==================
;==================
; Zero Page Usage
;==================
;==================
2023-08-15 16:53:05 +00:00
2023-11-01 01:57:26 +00:00
; ZX0 decompression addresses
2023-08-15 16:53:05 +00:00
ZX0_src = $00
ZX0_dst = $02
offset = $04
bitr = $06
pntr = $07
WHICH_LOAD = $09
CURRENT_DISK = $0A
2023-11-01 01:57:26 +00:00
; Zero page monitor routines addresses
; We don't use the monitor but we use some of these anyway
2023-08-15 16:53:05 +00:00
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 = $30
2023-11-01 01:57:26 +00:00
;INVFLG = $32
2023-08-15 16:53:05 +00:00
2023-11-01 01:57:26 +00:00
;==========================
; $60-$6F unused currently
;==========================
2023-08-15 16:53:05 +00:00
2023-11-01 01:57:26 +00:00
;==========================
; $70-$7F for PT3 Player
;==========================
2023-08-15 16:53:05 +00:00
AY_REGISTERS = $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
PT3_MIXER_VAL = $77
A_VOLUME = $78
B_VOLUME = $79
C_VOLUME = $7A
ENVELOPE_FINE = $7B
ENVELOPE_COARSE = $7C
ENVELOPE_SHAPE = $7D
PATTERN_L = $7E
PATTERN_H = $7F
2023-11-01 01:57:26 +00:00
;============================
; $80-$8D rest of pt3_player
;============================
2023-08-15 16:53:05 +00:00
PT3_TEMP = $80
ORNAMENT_L = $81
ORNAMENT_H = $82
SAMPLE_L = $83
SAMPLE_H = $84
LOOP = $85
MB_VALUE = $86
MB_ADDR_L = $87
MB_ADDR_H = $88
DONE_PLAYING = $89
DONE_SONG = $8A
APPLEII_MODEL = $8B
SOUND_STATUS = $8C
SOUND_DISABLED = $80
SOUND_IN_LC = $01 ; $01 sound effects in language card
SOUND_MOCKINGBOARD = $02 ; mockingboard detected
2023-11-01 01:57:26 +00:00
;=============================
; not sure why these are here
;=============================
2023-08-15 16:53:05 +00:00
DISP_PAGE = $8D
DRAW_PAGE = $8E
2023-10-06 04:21:16 +00:00
TOTAL_RAM = $8F
2023-11-01 01:57:26 +00:00
;=============================
; $90-$CF currently free
;=============================
2023-08-15 16:53:05 +00:00
2023-11-01 01:57:26 +00:00
;=============================
; $D0-$DA = ?
;=============================
2023-08-15 16:53:05 +00:00
2023-10-28 19:52:18 +00:00
WHICH_SLOT = $DA ; from boot sector
2023-10-17 05:19:06 +00:00
2023-11-01 01:57:26 +00:00
;==============================================
; $E0-$EF use for common things, don't re-use
;==============================================
IRQ_COUNTDOWN = $E0
SECOND_COUNTDOWN= $E1
COUNT = $E2
XSAVE = $E3
TEMPY = $E4
XPOS = $E5 ; gr_plot
YPOS = $E6 ; gr_plot
COLOR_MASK = $E7 ; gr_plot
FRAME = $E8
FRAMEL = $E8
FRAMEH = $E9
;==============================================
; $F0-$FB can re-use in each file
;==============================================
2023-10-28 05:28:48 +00:00
2023-11-01 01:57:26 +00:00
; tunnel
2023-10-17 05:19:06 +00:00
XX = $F2
MINUSXX = $F3
YY = $F4
MINUSYY = $F5
D = $F6
R = $F7
CX = $F8
CY = $F9
2023-10-28 05:28:48 +00:00
RR = $FA
2023-10-17 05:19:06 +00:00
2023-10-27 01:50:58 +00:00
; Credits
2023-10-28 05:28:48 +00:00
BACKUP_OUTL = $F2
BACKUP_OUTH = $F3
2023-10-17 05:19:06 +00:00
2023-10-29 00:13:34 +00:00
; Nuts/ opener
2023-10-17 05:19:06 +00:00
2023-10-28 05:28:48 +00:00
SPRITE_Y = $F2
SPRITE_X = $F3
CURRENT_ROW = $F4
2023-10-17 05:19:06 +00:00
2023-10-29 02:56:39 +00:00
; PLASMACUBE
2023-11-01 01:57:26 +00:00
OUT1 = $F0
OUT1H = $F1
OUT2 = $F2
OUT2H = $F3
COMPT1 = $F4
COMPT2 = $F5
PARAM1 = $F6
PARAM2 = $F7
PARAM3 = $F8
PARAM4 = $F9
GRLINE = $FA
GRLINEH = $FB
2023-10-29 02:56:39 +00:00
2023-10-29 03:16:35 +00:00
; PLASMA
2023-10-29 23:00:59 +00:00
; CUBE
SAVEX = $F3
SAVEY = $F4
SUM = $F5
2023-08-15 16:53:05 +00:00
2023-11-01 01:57:26 +00:00
; CIRCLES/DRAW_BOXES
COLOR2 = $F3
X1 = $F4
X2 = $F5
Y1 = $F6
Y2 = $F7
SCENE_COUNT = $F8
LAST_TYPE = $F9
; rotozoom
NUM1L = $F0
NUM1H = $F1
NUM2L = $F2
NUM2H = $F3
RESULT = $F4 ; F5,F6,F7
SCALE_I = $F8
SCALE_F = $F9
ANGLE = $FA
; credits
SCROLL_X = $F0
; sierzoom
;XX = $F0
XX_TH = $F1
XX_TL = $F2
;YY = $F3
YY_TH = $F4
YY_TL = $F5
T_L = $F6
T_H = $F7
SAVED = $F8
BAR_X1 = $F0
BAR_X2 = $F1
2023-11-01 01:57:26 +00:00
;==============================================
; $FC-$FF we use for in/out pointers
;==============================================
INL = $FC
INH = $FD
OUTL = $FE
OUTH = $FF
2023-08-15 16:53:05 +00:00
; read any file slot 6 version
; based on FASTLD6 and RTS copyright (c) Peter Ferrie 2011-2013,2018
; modified to assembled with ca64 -- vmw
; added code to patch it to run from current disk slot -- vmw
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 = $f0
ldsizeh = $f1
namlo = $fb
namhi = $fc
step = $fd ; state for stepper motor
tmptrk = $fe ; temporary copy of current track
phase = $ff ; current phase for /seek