mirror of
https://github.com/jeremysrand/BuGS.git
synced 2024-09-29 00:54:29 +00:00
Just do writes to the DOC when initializing the sound without a read check. The read check seems to fail for the size register for some reason. Bump the version number.
This commit is contained in:
parent
13f8602048
commit
7382a7f4aa
@ -130,6 +130,19 @@ writeReg_loop anop
|
||||
rts
|
||||
|
||||
|
||||
; Y has the register to write to (16 bit mode)
|
||||
; A has the value to write (8 bit mode)
|
||||
; Assuming not in increment mode
|
||||
writeRegNoRead entry
|
||||
sta registerValue
|
||||
tya
|
||||
sta >SOUND_ADDR_LOW
|
||||
_docWait
|
||||
lda registerValue
|
||||
sta >SOUND_DATA_REG
|
||||
rts
|
||||
|
||||
|
||||
soundInit entry
|
||||
; Spider sound
|
||||
pea SPIDER_SOUND_ADDR
|
||||
@ -176,9 +189,10 @@ soundInit entry
|
||||
|
||||
ldx #soundRegDefaults
|
||||
soundInit_loop anop
|
||||
ldy |$0,x
|
||||
lda |$0,x
|
||||
tay
|
||||
lda |$1,x
|
||||
jsr writeReg
|
||||
jsr writeRegNoRead
|
||||
inx
|
||||
inx
|
||||
cpx #soundRegDefaultsEnd
|
||||
|
@ -16,7 +16,7 @@ resource rVersion (1) {
|
||||
{
|
||||
0, /* Major version number in BCD */
|
||||
9, /* Minor version number in BCD */
|
||||
3, /* Bug version number in BCD */
|
||||
4, /* Bug version number in BCD */
|
||||
beta, /* Development phase */
|
||||
0 /* Release number */
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user