mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-24 03:34:02 +00:00
fix Marble Madness reset
This commit is contained in:
parent
d358aad4d8
commit
2d0c191aee
32
src/prelaunch/marble.madness.a
Normal file
32
src/prelaunch/marble.madness.a
Normal file
@ -0,0 +1,32 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/MARBLE.MADNESS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #>(callback-1)
|
||||
sta $4C9C
|
||||
lda #<(callback-1)
|
||||
sta $4C9F
|
||||
jmp $4A86 ; decompress
|
||||
|
||||
reset
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $FAA6
|
||||
|
||||
callback
|
||||
lda #<reset
|
||||
sta $8DCD
|
||||
lda #>reset
|
||||
sta $8DD5
|
||||
sta $8DDD
|
||||
+DISABLE_ACCEL
|
||||
jmp $1000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user