Fix Mr. Do sound on GS (#315)

This commit is contained in:
Tom Greene 2020-07-27 09:37:39 -04:00 committed by GitHub
parent 262e94540c
commit bd6bb146c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,21 +29,34 @@ cheat1
bne $19e bne $19e
cheat3 cheat3
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$60 lda #$60
sta $83f sta $83f
+ jsr $800 jsr $800
lda $847
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
pha
+ lda $847
beq cheat48 beq cheat48
lda #$60 lda #$60
sta $d15 sta $d15
jsr $ce8 jsr $ce8
pla
beq +
lda #<cheat4 lda #<cheat4
sta $d137 sta $d137
lda #>cheat4 lda #>cheat4
sta $d138 sta $d138
+ lda #<fixgs
sta $89ee
lda #>fixgs
sta $89ef
jmp $d100 jmp $d100
cheat4 cheat4
@ -51,11 +64,17 @@ cheat4
jmp cheat64 jmp cheat64
cheat48 cheat48
pla
beq +
lda #<cheat1 lda #<cheat1
sta $1040 sta $1040
lda #>cheat1 lda #>cheat1
sta $1041 sta $1041
jmp $1000 + jmp $1000
fixgs
sei
jmp $08b2
!if * > $1C0 { !if * > $1C0 {
!error "code is too large, ends at ", * !error "code is too large, ends at ", *