mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-02 06:30:47 +00:00
f9a7879987
Tested these on my ][+ tonight so they should be good. Weren't working when LC was switched out.
43 lines
952 B
Plaintext
Executable File
43 lines
952 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019 by qkumba/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/TOMAHAWK",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
+READ_RAM2_WRITE_RAM2
|
|
lda #<reset
|
|
sta $FFFC
|
|
lda #>reset
|
|
sta $FFFD ; reset vector fix for title
|
|
+READ_ROM_NO_WRITE
|
|
|
|
lda #$60
|
|
sta $309B
|
|
jsr $3019
|
|
|
|
+RESET_VECTOR reset
|
|
+READ_RAM2_WRITE_RAM2
|
|
lda #<reset
|
|
sta $9767
|
|
sta $FFFC
|
|
lda #>reset
|
|
sta $9768 ; gets patched to LC later
|
|
sta $FFFD ; also, our LC fix wrecked later in title
|
|
+READ_ROM_NO_WRITE
|
|
; yes, it changes the vector like 300 times
|
|
+DISABLE_ACCEL
|
|
lda $C083
|
|
jmp $235
|
|
|
|
reset
|
|
+READ_ROM_NO_WRITE
|
|
jmp $FAA6
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|