mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-25 21:29:43 +00:00
some reset fixes
This commit is contained in:
parent
50c8692a30
commit
e69e766c66
28
src/prelaunch/situation.crtcl.a
Normal file
28
src/prelaunch/situation.crtcl.a
Normal file
|
@ -0,0 +1,28 @@
|
|||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/SITUATION.CRTCL",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<callback
|
||||
sta $84E
|
||||
lda #>callback
|
||||
sta $84F
|
||||
jmp $800 ; decompress
|
||||
|
||||
callback
|
||||
+RESET_VECTOR reset
|
||||
+DISABLE_ACCEL
|
||||
jmp $10DD
|
||||
|
||||
reset
|
||||
+READ_RAM1_NO_WRITE
|
||||
jmp ($FFFC)
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
|
@ -7,8 +7,13 @@
|
|||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
inc $80 ; requires a non-zero value for the RNG
|
||||
jmp $4621
|
||||
+ENABLE_ACCEL
|
||||
inc $80 ; requires a non-zero value for the RNG
|
||||
lda #$60
|
||||
sta $7E31
|
||||
jsr $4621
|
||||
+DISABLE_ACCEL
|
||||
jmp $67BD
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
|
24
src/prelaunch/thexder.a
Normal file
24
src/prelaunch/thexder.a
Normal file
|
@ -0,0 +1,24 @@
|
|||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/THEXDER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $13A8
|
||||
jsr $1200
|
||||
+RESET_VECTOR reset
|
||||
+DISABLE_ACCEL
|
||||
jmp $1800
|
||||
|
||||
reset
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $FAA6
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
25
src/prelaunch/tomahawk.a
Normal file
25
src/prelaunch/tomahawk.a
Normal file
|
@ -0,0 +1,25 @@
|
|||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/TOMAHAWK",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $309B
|
||||
jsr $3019
|
||||
+RESET_VECTOR reset
|
||||
+DISABLE_ACCEL
|
||||
lda $C083
|
||||
jmp $235
|
||||
|
||||
reset
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $FAA6
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
|
@ -7,8 +7,29 @@
|
|||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
+USES_TEXT_PAGE_2
|
||||
jmp $2000
|
||||
lda #$60
|
||||
sta $21E8
|
||||
jsr $2000 ; find and load "DOS"
|
||||
lda #<callback
|
||||
sta $B748
|
||||
lda #>callback
|
||||
sta $B749
|
||||
jmp $B700
|
||||
|
||||
reset
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $FAA6
|
||||
|
||||
callback
|
||||
lda #>reset
|
||||
sta $9E52
|
||||
lda #<reset
|
||||
sta $9E53 ; reset vector patch
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
|
Loading…
Reference in New Issue
Block a user