This commit is contained in:
Peter Ferrie 2020-07-27 15:35:55 -07:00
commit be963149ba

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 ", *