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:
Jeremy Rand 2021-01-24 14:04:49 -05:00
parent 13f8602048
commit 7382a7f4aa
2 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -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 */
},