mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-23 12:33:32 +00:00
big bunch of reset fixes (#372)
* big bunch of reset fixes * big bunch of reset fixes.
This commit is contained in:
parent
dbd89eb954
commit
7a7724130a
@ -22,16 +22,10 @@
|
||||
sta $B743
|
||||
jmp $B700 ; decompress2
|
||||
|
||||
hook lda #$A9
|
||||
sta $9E30
|
||||
sta $9E3B
|
||||
lda #$EA
|
||||
sta $9E32
|
||||
sta $9E3D
|
||||
lda #$02
|
||||
sta $9E31
|
||||
lda #$80
|
||||
sta $9E3C ; change vector to $280
|
||||
hook lda #$80
|
||||
sta $9E52
|
||||
lda #2
|
||||
sta $9E53 ; reset vector fix
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $BFC8
|
||||
|
44
src/prelaunch/apple.invader.a
Normal file
44
src/prelaunch/apple.invader.a
Normal file
@ -0,0 +1,44 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/APPLE.INVADER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
;+ENABLE_ACCEL ; text on screen
|
||||
|
||||
lda #$60
|
||||
sta $6020
|
||||
jsr $6002 ; decompress
|
||||
|
||||
lda #$D8 ; move location from $3F2 to $3D8
|
||||
sta $1113 ; (program uses reset vector for storage)
|
||||
sta $1245
|
||||
sta $4A2C
|
||||
sta $4A34
|
||||
sta $4A41
|
||||
sta $5A9C
|
||||
sta $5AA4
|
||||
sta $5AB1
|
||||
sta $5A9C
|
||||
|
||||
lda #$D9 ; move location from $3F3 to $3D9
|
||||
sta $1FA0
|
||||
sta $4A31
|
||||
sta $4F4D
|
||||
sta $5AA1
|
||||
|
||||
lda #$DA ; move location from $3F4 to $3DA
|
||||
sta $11AF
|
||||
sta $1824
|
||||
sta $19DF
|
||||
sta $1DE8
|
||||
sta $1E5A
|
||||
|
||||
jmp $5F00
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
23
src/prelaunch/artesians.a
Normal file
23
src/prelaunch/artesians.a
Normal file
@ -0,0 +1,23 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/ARTESIANS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $87B+1
|
||||
lda #>hook
|
||||
sta $87B+2
|
||||
jmp $800 ; decompress
|
||||
|
||||
hook +RESET_VECTOR $100
|
||||
+DISABLE_ACCEL
|
||||
jmp $B31B
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
18
src/prelaunch/caverns.freitag.a
Normal file
18
src/prelaunch/caverns.freitag.a
Normal file
@ -0,0 +1,18 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/CAVERNS.FREITAG",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
;+ENABLE_ACCEL ; shows title
|
||||
|
||||
+NEW_RESET_VECTOR $280
|
||||
|
||||
jmp $4000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
22
src/prelaunch/infiltrator.a
Normal file
22
src/prelaunch/infiltrator.a
Normal file
@ -0,0 +1,22 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/INFILTRATOR",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+READ_RAM1_WRITE_RAM1
|
||||
+LC_REBOOT
|
||||
+READ_ROM_NO_WRITE
|
||||
lda #$B4
|
||||
sta $98E
|
||||
lda #$EF
|
||||
sta $98D ; reset vector fix
|
||||
|
||||
jmp $800
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
28
src/prelaunch/its.the.pits.a
Normal file
28
src/prelaunch/its.the.pits.a
Normal file
@ -0,0 +1,28 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/ITS.THE.PITS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $813
|
||||
jsr $800 ; decompress
|
||||
|
||||
lda #$2C
|
||||
sta $1806
|
||||
sta $180B
|
||||
sta $1810
|
||||
sta $1833
|
||||
sta $1838
|
||||
sta $183D ; reset vector fix
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $1800
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
34
src/prelaunch/jellyfish.a
Normal file
34
src/prelaunch/jellyfish.a
Normal file
@ -0,0 +1,34 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/JELLYFISH",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #<reset
|
||||
sta $2049+1
|
||||
lda #>reset
|
||||
sta $2049+2
|
||||
|
||||
ldx #(reset_e-reset)-1
|
||||
- lda callback,x
|
||||
sta $50,x
|
||||
dex
|
||||
bpl -
|
||||
|
||||
jmp $2000
|
||||
|
||||
callback !pseudopc $50 {
|
||||
reset +NEW_RESET_VECTOR $2F0
|
||||
+DISABLE_ACCEL
|
||||
jmp $B800
|
||||
reset_e
|
||||
}
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
23
src/prelaunch/lunar.leepers.a
Normal file
23
src/prelaunch/lunar.leepers.a
Normal file
@ -0,0 +1,23 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/LUNAR.LEEPERS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #$60
|
||||
sta $87D
|
||||
jsr $800 ; decompress
|
||||
|
||||
+RESET_VECTOR $100
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $6000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
27
src/prelaunch/marauder.a
Normal file
27
src/prelaunch/marauder.a
Normal file
@ -0,0 +1,27 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/MARAUDER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #$60
|
||||
sta $864
|
||||
jsr $800 ; decompress
|
||||
|
||||
+NEW_RESET_VECTOR $1A0
|
||||
lda #$2C
|
||||
sta $B5D1
|
||||
sta $B5D4
|
||||
sta $B5D9 ; reset vector fix
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $B5B9
|
||||
|
||||
!if * > $1A0 {
|
||||
!error "code is too large for reset vector hook, ends at ", *
|
||||
}
|
35
src/prelaunch/mazeblox.a
Normal file
35
src/prelaunch/mazeblox.a
Normal file
@ -0,0 +1,35 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/MAZEBLOX",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook1
|
||||
sta $A10+1
|
||||
lda #>hook1
|
||||
sta $A10+2
|
||||
jmp $800 ; decompress1
|
||||
|
||||
hook1 lda #<hook2
|
||||
sta $B747+1
|
||||
lda #>hook2
|
||||
sta $B747+2
|
||||
jmp $B700 ; decompress2
|
||||
|
||||
hook2 lda #<hook3
|
||||
sta $9E4D+1
|
||||
lda #>hook3
|
||||
sta $9E4D+2
|
||||
jmp $9D84 ; decompress3
|
||||
|
||||
hook3 +RESET_VECTOR $100
|
||||
+DISABLE_ACCEL
|
||||
jmp $A180
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
15
src/prelaunch/neut.tower.a
Normal file
15
src/prelaunch/neut.tower.a
Normal file
@ -0,0 +1,15 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/NEUT.TOWER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+NEW_RESET_VECTOR $280
|
||||
jmp $5000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
24
src/prelaunch/on.the.run.a
Normal file
24
src/prelaunch/on.the.run.a
Normal file
@ -0,0 +1,24 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/ON.THE.RUN",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
;+ENABLE_ACCEL ; can't, shows title
|
||||
|
||||
lda #<hook
|
||||
sta $9436
|
||||
lda #>hook
|
||||
sta $9437
|
||||
jmp $9400 ; decompress
|
||||
|
||||
hook +RESET_VECTOR $100
|
||||
|
||||
jmp $800
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
29
src/prelaunch/peeping.tom.a
Normal file
29
src/prelaunch/peeping.tom.a
Normal file
@ -0,0 +1,29 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/PEEPING.TOM",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
;+ENABLE_ACCEL ; shows title right away
|
||||
|
||||
lda #<hook1
|
||||
sta $6969+1
|
||||
lda #>hook1
|
||||
sta $6969+2
|
||||
jmp $68F5 ; decompress1
|
||||
|
||||
hook1 lda #<hook2
|
||||
sta $BEA4+1
|
||||
lda #>hook2
|
||||
sta $BEA4+2
|
||||
jmp $BE81 ; decompress2
|
||||
|
||||
hook2 +RESET_VECTOR $100
|
||||
jmp $17E3
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
42
src/prelaunch/space.kadet.a
Normal file
42
src/prelaunch/space.kadet.a
Normal file
@ -0,0 +1,42 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/SPACE.KADET",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #<hook1
|
||||
sta $3631+1
|
||||
lda #>hook1
|
||||
sta $3631+2
|
||||
jmp $3600 ; decompress1
|
||||
|
||||
hook1 lda #<hook2
|
||||
sta $9A68+1
|
||||
lda #>hook2
|
||||
sta $9A68+2
|
||||
jmp $9A4A ; decompress2
|
||||
|
||||
hook2 lda #<hook3
|
||||
sta $9A7A+1
|
||||
lda #>hook3
|
||||
sta $9A7A+2
|
||||
+DISABLE_ACCEL
|
||||
jmp $800 ; show title
|
||||
|
||||
hook3 lda #0
|
||||
sta $6914
|
||||
lda #1
|
||||
sta $690F
|
||||
lda #$A4
|
||||
sta $690A ; reset vector fix
|
||||
|
||||
jmp $1200
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
27
src/prelaunch/star.dance.a
Normal file
27
src/prelaunch/star.dance.a
Normal file
@ -0,0 +1,27 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/STAR.DANCE",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $1FB9+1
|
||||
lda #>hook
|
||||
sta $1FB9+2
|
||||
jmp $1F74 ; decompress
|
||||
|
||||
hook lda #0
|
||||
sta $7007
|
||||
lda #1
|
||||
sta $700C ; reset vector fix
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $7000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
27
src/prelaunch/starball.a
Normal file
27
src/prelaunch/starball.a
Normal file
@ -0,0 +1,27 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/STARBALL",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $A1E+1
|
||||
lda #>hook
|
||||
sta $A1E+2
|
||||
jmp $800 ; decompress
|
||||
|
||||
hook lda #0
|
||||
sta $9E52
|
||||
lda #1
|
||||
sta $9E53 ; reset vector fix
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
30
src/prelaunch/super.taxman.2.a
Normal file
30
src/prelaunch/super.taxman.2.a
Normal file
@ -0,0 +1,30 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/SUPER.TAXMAN.2",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $C81+1
|
||||
lda #>hook
|
||||
sta $C81+2
|
||||
jmp $C00 ; decompress
|
||||
|
||||
hook lda #0
|
||||
sta $4056
|
||||
lda #1
|
||||
sta $4061 ; reset vector fix
|
||||
|
||||
lda #$2C ; annunciator fix - kills Gizmo/joyport support
|
||||
sta $666A ; but fixes ][+ 80-col softswitch and //c+ coloring
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $4000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
33
src/prelaunch/titan.cronus.a
Normal file
33
src/prelaunch/titan.cronus.a
Normal file
@ -0,0 +1,33 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/TITAN.CRONUS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $1053+1
|
||||
lda #>hook
|
||||
sta $1053+2
|
||||
jmp $1000 ; decompress
|
||||
|
||||
hook +NEW_RESET_VECTOR $280
|
||||
|
||||
lda #$8C ; CALL
|
||||
sta $C84
|
||||
lda #$36 ; "640" / $280
|
||||
sta $C84+1
|
||||
lda #$34
|
||||
sta $C84+2 ; return to TR instead of BASIC
|
||||
lda #$30
|
||||
sta $C84+3 ; (replaces TEXT:HOME:END)
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $D566
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
23
src/prelaunch/vortex.a
Normal file
23
src/prelaunch/vortex.a
Normal file
@ -0,0 +1,23 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/VORTEX",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #<hook
|
||||
sta $407E+1
|
||||
lda #>hook
|
||||
sta $407E+2
|
||||
jmp $4000 ; decompress2
|
||||
|
||||
hook +RESET_VECTOR $100
|
||||
+DISABLE_ACCEL
|
||||
jmp $D566
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user