mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-28 19:31:55 +00:00
some reset fixes
This commit is contained in:
parent
62d0581de4
commit
50c8692a30
31
src/prelaunch/aztec.a
Normal file
31
src/prelaunch/aztec.a
Normal file
@ -0,0 +1,31 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/AZTEC",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $98A
|
||||
jsr $800 ; find and load "DOS"
|
||||
lda #<callback
|
||||
sta $B748
|
||||
lda #>callback
|
||||
sta $B749
|
||||
jmp $B700
|
||||
|
||||
callback
|
||||
ldx #0
|
||||
stx $9E52
|
||||
inx
|
||||
stx $9E53 ; reset vector patch
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
!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 $800
|
||||
lda #$60
|
||||
sta $97C
|
||||
jsr $800 ; 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 $9E31
|
||||
lda #<reset
|
||||
sta $9E3C ; reset vector patch
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
@ -11,9 +11,14 @@
|
||||
lda #$60
|
||||
sta $3D34
|
||||
jsr $0800 ; decompress
|
||||
+RESET_VECTOR reset
|
||||
+DISABLE_ACCEL
|
||||
jmp $6000
|
||||
|
||||
reset
|
||||
+READ_RAM2_NO_WRITE
|
||||
jmp ($FFFC)
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
||||
|
@ -22,6 +22,10 @@
|
||||
sta $7B8B ; patch - never decrease lives (player 1)
|
||||
sta $7B81 ; patch - never decrease lives (player 2)
|
||||
+
|
||||
lda #$AD
|
||||
sta $209
|
||||
sta $211
|
||||
sta $21C
|
||||
+DISABLE_ACCEL
|
||||
jmp $B7A1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user