Reset vector fixes (#185)

This commit is contained in:
frankmilliron 2020-05-07 16:06:00 -07:00 committed by GitHub
parent ca7c39b40b
commit ef2e4f9a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 2 deletions

View File

@ -1,5 +1,5 @@
;license:MIT ;license:MIT
;(c) 2020 by qkumba ;(c) 2020 by qkumba/Frank M.
!cpu 6502 !cpu 6502
!to "build/PRELAUNCH/ASTEROID.FIELD",plain !to "build/PRELAUNCH/ASTEROID.FIELD",plain
@ -20,6 +20,7 @@
+ +
lda #1 lda #1
sta $12F2 sta $12F2
+RESET_VECTOR $100
+DISABLE_ACCEL +DISABLE_ACCEL
jmp $4000 jmp $4000

View File

@ -1,5 +1,5 @@
;license:MIT ;license:MIT
;(c) 2020 by qkumba ;(c) 2020 by qkumba/Frank M.
!cpu 6502 !cpu 6502
!to "build/PRELAUNCH/MICRO.INVADERS",plain !to "build/PRELAUNCH/MICRO.INVADERS",plain
@ -19,6 +19,7 @@
sta $144B ; patch - don't decrease lives sta $144B ; patch - don't decrease lives
sta $E96 ; patch - don't increase lives sta $E96 ; patch - don't increase lives
+ +
+RESET_VECTOR $100
+DISABLE_ACCEL +DISABLE_ACCEL
jmp $305 jmp $305

44
src/prelaunch/nightmare.a Normal file
View File

@ -0,0 +1,44 @@
;license:MIT
;(c) 2020 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/NIGHTMARE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $404B
jsr $4000 ; decompress
lda #<callback ; lets fix ROM calls to WAIT/$FCA8
sta $16A9 ; which behave differently
sta $80EE ; on different machines
sta $8799 ; (fixes slow scream on //c+ & //gs)
sta $8C8F
sta $8CC4
sta $8CE1
lda #>callback
sta $16AA
sta $80EF
sta $879A
sta $8C90
sta $8CC5
sta $8CE2
+DISABLE_ACCEL
jmp $1206
callback sec ; non-ROM WAIT
wait2 pha
wait3 sbc #$01
bne wait3
pla
sbc #$01
bne wait2
rts
!if * > $1C0 {
!error "code is too large, ends at ", *
}