small tape support + turbo mode tweaks

This commit is contained in:
FeralChild64 committed 2020-10-22 20:08:13 +02:00
1 parent c98407bd84
commit 6dc461d184
9 files changed
+84 -29

No files matched your search

@@ -0,0 +1,31 @@
;; #LAYOUT# M65 KERNAL_1 #TAKE
;; #LAYOUT# * * #IGNORE
;
; Tape helper routine
;
; - unlocks VIC-IV
; - switches CPU to fast processing mode and disables badlines
; - stores previous VIC_CTRLB in NXTBIN
;
!ifdef HAS_TAPE {
tape_fast_cpu:
jsr M65_MODEGET
bcc @1
jsr viciv_unhide
@1:
lda VIC_CTRLB
ora #%01000000
sta VIC_CTRLB
sta NXTBIT
lda #$00
sta MISC_EMU
rts
}