mirror of
https://github.com/jeremysrand/BuGS.git
synced 2025-01-08 03:30:30 +00:00
Move to a table based approach for setting up the DOC registers, still have some more sounds to move to the tables.
This commit is contained in:
parent
a7b404c676
commit
9d42dd3c59
386
BuGS/gameSound.s
386
BuGS/gameSound.s
@ -135,273 +135,22 @@ soundInit entry
|
|||||||
pea SPIDER_SOUND_ADDR
|
pea SPIDER_SOUND_ADDR
|
||||||
jsl loadSpiderSound
|
jsl loadSpiderSound
|
||||||
|
|
||||||
short m
|
|
||||||
lda >SOUND_SYSTEM_VOLUME
|
|
||||||
and #$0f
|
|
||||||
ora #$20
|
|
||||||
sta >SOUND_CONTROL_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_LOW+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SPIDER_FREQ_LOW
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_HIGH+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SPIDER_FREQ_HIGH
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_VOLUME+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #$0
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_SIZE+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SPIDER_SIZE
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_POINTER+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SPIDER_SOUND_ADDR/256
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_CONTROL+SPIDER_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
long m
|
|
||||||
|
|
||||||
; Death sound
|
; Death sound
|
||||||
pea DEATH_SOUND_ADDR
|
pea DEATH_SOUND_ADDR
|
||||||
jsl loadDeathSound
|
jsl loadDeathSound
|
||||||
|
|
||||||
short m
|
|
||||||
lda >SOUND_SYSTEM_VOLUME
|
|
||||||
and #$0f
|
|
||||||
ora #$20
|
|
||||||
sta >SOUND_CONTROL_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_LOW+DEATH_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #DEATH_FREQ_LOW
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_HIGH+DEATH_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #DEATH_FREQ_HIGH
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_SIZE+DEATH_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #DEATH_SIZE
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_POINTER+DEATH_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #DEATH_SOUND_ADDR/256
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_CONTROL+DEATH_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #DEATH_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #DEATH_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
long m
|
|
||||||
|
|
||||||
|
|
||||||
; Segments sound
|
; Segments sound
|
||||||
pea SEGMENTS_SOUND_ADDR
|
pea SEGMENTS_SOUND_ADDR
|
||||||
jsl loadSegmentsSound
|
jsl loadSegmentsSound
|
||||||
|
|
||||||
short m
|
|
||||||
lda >SOUND_SYSTEM_VOLUME
|
|
||||||
and #$0f
|
|
||||||
ora #$20
|
|
||||||
sta >SOUND_CONTROL_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_LOW+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SEGMENTS_FREQ_LOW
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_HIGH+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SEGMENTS_FREQ_HIGH
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_VOLUME+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #0
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_SIZE+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SEGMENTS_SIZE
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_POINTER+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SEGMENTS_SOUND_ADDR/256
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_CONTROL+SEGMENTS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
long m
|
|
||||||
|
|
||||||
|
|
||||||
; Bonus sound
|
; Bonus sound
|
||||||
pea BONUS_SOUND_ADDR
|
pea BONUS_SOUND_ADDR
|
||||||
jsl loadBonusSound
|
jsl loadBonusSound
|
||||||
|
|
||||||
short m
|
|
||||||
lda >SOUND_SYSTEM_VOLUME
|
|
||||||
and #$0f
|
|
||||||
ora #$20
|
|
||||||
sta >SOUND_CONTROL_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_LOW+BONUS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #BONUS_FREQ_LOW
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #BONUS_FREQ_HIGH
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_SIZE+BONUS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #BONUS_SIZE
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_POINTER+BONUS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #BONUS_SOUND_ADDR/256
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_CONTROL+BONUS_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
long m
|
|
||||||
|
|
||||||
; Kill sound
|
; Kill sound
|
||||||
pea KILL_SOUND_ADDR
|
pea KILL_SOUND_ADDR
|
||||||
jsl loadKillSound
|
jsl loadKillSound
|
||||||
|
|
||||||
short m
|
|
||||||
lda >SOUND_SYSTEM_VOLUME
|
|
||||||
and #$0f
|
|
||||||
ora #$20
|
|
||||||
sta >SOUND_CONTROL_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_LOW+KILL_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #KILL_FREQ_LOW
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_FREQ_HIGH+KILL_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #KILL_FREQ_HIGH
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_SIZE+KILL_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #KILL_SIZE
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_POINTER+KILL_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #KILL_SOUND_ADDR/256
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
|
|
||||||
lda #SOUND_REG_CONTROL+KILL_OSC_NUM
|
|
||||||
sta >SOUND_ADDR_LOW
|
|
||||||
lda #KILL_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER
|
|
||||||
sta >SOUND_DATA_REG
|
|
||||||
lda #KILL_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER
|
|
||||||
long m
|
|
||||||
|
|
||||||
; Fire sound
|
; Fire sound
|
||||||
pea FIRE_SOUND_ADDR
|
pea FIRE_SOUND_ADDR
|
||||||
jsl loadFireSound
|
jsl loadFireSound
|
||||||
@ -612,6 +361,25 @@ soundInit entry
|
|||||||
sta >SOUND_DATA_REG
|
sta >SOUND_DATA_REG
|
||||||
long m
|
long m
|
||||||
|
|
||||||
|
; Set registers
|
||||||
|
short m
|
||||||
|
_docWait
|
||||||
|
lda >SOUND_SYSTEM_VOLUME
|
||||||
|
and #$0f
|
||||||
|
sta >SOUND_CONTROL_REG
|
||||||
|
|
||||||
|
|
||||||
|
ldx #soundRegDefaults
|
||||||
|
soundInit_loop anop
|
||||||
|
ldy |$0,x
|
||||||
|
lda |$1,x
|
||||||
|
jsr writeReg
|
||||||
|
inx
|
||||||
|
inx
|
||||||
|
cpx #soundRegDefaultsEnd
|
||||||
|
blt soundInit_loop
|
||||||
|
long m
|
||||||
|
|
||||||
rtl
|
rtl
|
||||||
|
|
||||||
|
|
||||||
@ -1263,4 +1031,120 @@ spiderSoundIsPlaying dc i2'1'
|
|||||||
scorpionSoundIsPlaying dc i2'1'
|
scorpionSoundIsPlaying dc i2'1'
|
||||||
registerValue dc i2'0'
|
registerValue dc i2'0'
|
||||||
|
|
||||||
|
soundRegDefaults anop
|
||||||
|
; Spider registers
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SPIDER_OSC_NUM',i1'SPIDER_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SPIDER_OSC_NUM+1',i1'SPIDER_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SPIDER_OSC_NUM+2',i1'SPIDER_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SPIDER_OSC_NUM+3',i1'SPIDER_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SPIDER_OSC_NUM',i1'SPIDER_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SPIDER_OSC_NUM+1',i1'SPIDER_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SPIDER_OSC_NUM+2',i1'SPIDER_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SPIDER_OSC_NUM+3',i1'SPIDER_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SPIDER_OSC_NUM',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SPIDER_OSC_NUM+1',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SPIDER_OSC_NUM+2',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SPIDER_OSC_NUM+3',i1'0'
|
||||||
|
dc i1'SOUND_REG_SIZE+SPIDER_OSC_NUM',i1'SPIDER_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SPIDER_OSC_NUM+1',i1'SPIDER_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SPIDER_OSC_NUM+2',i1'SPIDER_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SPIDER_OSC_NUM+3',i1'SPIDER_SIZE'
|
||||||
|
dc i1'SOUND_REG_POINTER+SPIDER_OSC_NUM',i1'SPIDER_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SPIDER_OSC_NUM+1',i1'SPIDER_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SPIDER_OSC_NUM+2',i1'SPIDER_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SPIDER_OSC_NUM+3',i1'SPIDER_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SPIDER_OSC_NUM',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SPIDER_OSC_NUM+1',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SPIDER_OSC_NUM+2',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SPIDER_OSC_NUM+3',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
|
||||||
|
; Death registers
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+DEATH_OSC_NUM',i1'DEATH_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+DEATH_OSC_NUM+1',i1'DEATH_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+DEATH_OSC_NUM',i1'DEATH_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+DEATH_OSC_NUM+1',i1'DEATH_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_SIZE+DEATH_OSC_NUM',i1'DEATH_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+DEATH_OSC_NUM+1',i1'DEATH_SIZE'
|
||||||
|
dc i1'SOUND_REG_POINTER+DEATH_OSC_NUM',i1'DEATH_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+DEATH_OSC_NUM+1',i1'DEATH_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_CONTROL+DEATH_OSC_NUM',i1'DEATH_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+DEATH_OSC_NUM+1',i1'DEATH_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
|
||||||
|
; Segments registers
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SEGMENTS_OSC_NUM',i1'SEGMENTS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SEGMENTS_OSC_NUM+1',i1'SEGMENTS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SEGMENTS_OSC_NUM+2',i1'SEGMENTS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+SEGMENTS_OSC_NUM+3',i1'SEGMENTS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SEGMENTS_OSC_NUM',i1'SEGMENTS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SEGMENTS_OSC_NUM+1',i1'SEGMENTS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SEGMENTS_OSC_NUM+2',i1'SEGMENTS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+SEGMENTS_OSC_NUM+3',i1'SEGMENTS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SEGMENTS_OSC_NUM',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SEGMENTS_OSC_NUM+1',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SEGMENTS_OSC_NUM+2',i1'0'
|
||||||
|
dc i1'SOUND_REG_VOLUME+SEGMENTS_OSC_NUM+3',i1'0'
|
||||||
|
dc i1'SOUND_REG_SIZE+SEGMENTS_OSC_NUM',i1'SEGMENTS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SEGMENTS_OSC_NUM+1',i1'SEGMENTS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SEGMENTS_OSC_NUM+2',i1'SEGMENTS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+SEGMENTS_OSC_NUM+3',i1'SEGMENTS_SIZE'
|
||||||
|
dc i1'SOUND_REG_POINTER+SEGMENTS_OSC_NUM',i1'SEGMENTS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SEGMENTS_OSC_NUM+1',i1'SEGMENTS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SEGMENTS_OSC_NUM+2',i1'SEGMENTS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+SEGMENTS_OSC_NUM+3',i1'SEGMENTS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SEGMENTS_OSC_NUM',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SEGMENTS_OSC_NUM+1',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SEGMENTS_OSC_NUM+2',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+SEGMENTS_OSC_NUM+3',i1'SOUND_ONE_SHOT_MODE+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
|
||||||
|
; Bonus registers
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM+1',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM+2',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM+3',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM+4',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+BONUS_OSC_NUM+5',i1'BONUS_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM+1',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM+2',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM+3',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM+4',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+BONUS_OSC_NUM+5',i1'BONUS_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM+1',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM+2',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM+3',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM+4',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+BONUS_OSC_NUM+5',i1'BONUS_SIZE'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM+1',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM+2',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM+3',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM+4',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+BONUS_OSC_NUM+5',i1'BONUS_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM+1',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM+2',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM+3',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM+4',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+BONUS_OSC_NUM+5',i1'BONUS_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
|
||||||
|
; Kill registers
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+KILL_OSC_NUM',i1'KILL_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_LOW+KILL_OSC_NUM+1',i1'KILL_FREQ_LOW'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+KILL_OSC_NUM',i1'KILL_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_FREQ_HIGH+KILL_OSC_NUM+1',i1'KILL_FREQ_HIGH'
|
||||||
|
dc i1'SOUND_REG_SIZE+KILL_OSC_NUM',i1'KILL_SIZE'
|
||||||
|
dc i1'SOUND_REG_SIZE+KILL_OSC_NUM+1',i1'KILL_SIZE'
|
||||||
|
dc i1'SOUND_REG_POINTER+KILL_OSC_NUM',i1'KILL_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_POINTER+KILL_OSC_NUM+1',i1'KILL_SOUND_ADDR/256'
|
||||||
|
dc i1'SOUND_REG_CONTROL+KILL_OSC_NUM',i1'KILL_CONTROL+SOUND_HALTED+SOUND_RIGHT_SPEAKER'
|
||||||
|
dc i1'SOUND_REG_CONTROL+KILL_OSC_NUM+1',i1'KILL_CONTROL+SOUND_HALTED+SOUND_LEFT_SPEAKER'
|
||||||
|
|
||||||
|
; Fire registers
|
||||||
|
; Extra life registers
|
||||||
|
; Flea registers
|
||||||
|
; Scorpion registers
|
||||||
|
|
||||||
|
soundRegDefaultsEnd anop
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user