Stargate reset fix (#403)

* Stargate reset fix

* Add files via upload
This commit is contained in:
frankmilliron 2021-10-26 21:13:07 -07:00 committed by GitHub
parent 644d571565
commit 9cb78ea33f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 2 deletions

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by qkumba
;(c) 2019 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SPIDER.RAID",plain
@ -8,13 +8,17 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3F0E
jsr $3EB9 ; decompress
lda #1
sta $40D3 ; reset vector
lda #$60
sta $40F1
jsr $4000
+RESET_VECTOR $100
+DISABLE_ACCEL
jmp $4246

33
src/prelaunch/stargate.a Normal file
View File

@ -0,0 +1,33 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/STARGATE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $4697
jsr $800 ; decompress
lda #$60
sta $9A03
jsr $9A00 ; decompress2
lda #0
sta $47F2
lda #1
sta $47F3
lda #$A4
sta $47F4 ; reset vector (moved to $3F2/3/4)
+DISABLE_ACCEL
jmp $5000
!if * > $1C0 {
!error "code is too large, ends at ", *
}