Microdrive/Trackstar support

This commit is contained in:
Peter Ferrie 2019-12-12 21:42:24 -08:00
parent 88eca93b28
commit 1456496269
2 changed files with 14 additions and 13 deletions

View File

@ -10,27 +10,28 @@
+READ_RAM2_NO_WRITE +READ_RAM2_NO_WRITE
jsr EnableAccelerator jsr EnableAccelerator
lda #$4c lda #$4c
sta $b21 sta $bb8
lda #<callback lda #<callback
sta $b22 sta $bb9
lda #>callback lda #>callback
sta $b23 sta $bba
ldx #<cheat2 ldx #<cheat2
lda MachineStatus lda MachineStatus
and #CHEATS_ENABLED and #CHEATS_ENABLED
beq + beq +
ldx #<cheat1 ldx #<cheat1
+ stx $b55 + stx $bec
lda #>cheat1 lda #>cheat1
sta $b56 sta $bed
- lda cheat, x ldx #cheat_e - cheat
sta $300, x - lda cheat - 1, x
inx sta <(cheat1 - 1), x
bpl - dex
bne -
bit MachineStatus bit MachineStatus
bvs + bvs +
lda #$82 lda #$82
sta lcpatch+1 sta <(lcpatch + 1)
+ +
+READ_ROM_NO_WRITE +READ_ROM_NO_WRITE
jmp $900 jmp $900
@ -41,9 +42,9 @@ callback
+READ_RAM2_NO_WRITE +READ_RAM2_NO_WRITE
jsr EnableAccelerator jsr EnableAccelerator
+READ_RAM1_WRITE_RAM1 +READ_RAM1_WRITE_RAM1
jmp $b24 jmp $bbb
cheat !pseudopc $300 { cheat !pseudopc $cf {
cheat1 cheat1
lda #$2c lda #$2c
sta $8a7e sta $8a7e
@ -53,5 +54,5 @@ cheat2
lcpatch lcpatch
lda $c08b lda $c08b
jmp $3800 jmp $3800
cheat_e
} }
cheat_e