Early Bird, Firebug, Handy Dandy reset fixes (#370)

This commit is contained in:
frankmilliron 2021-03-09 15:29:06 -08:00 committed by GitHub
parent 9cb15b2093
commit bd7a3b5501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,28 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/EARLY.BIRD",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<hook
sta $941D
lda #>hook
sta $941E
jmp $6D00 ; decompress
hook lda #0
sta $BB5
lda #1
sta $BBA ; reset vector fix
+DISABLE_ACCEL
jmp $BB0
!if * > $1C0 {
!error "code is too large, ends at ", *
}

26
src/prelaunch/firebug.a Normal file
View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/FIREBUG",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $2076
jsr $2000 ; decompress
lda #0
sta $83E
lda #1
sta $849 ; reset vector fix
+DISABLE_ACCEL
jmp $810
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/HANDY.DANDY",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<hook
sta $933D
lda #>hook
sta $933E
jmp $7000 ; decompress
hook lda #1
sta $75DD ; reset vector fix
+DISABLE_ACCEL
jmp $6000
!if * > $1C0 {
!error "code is too large, ends at ", *
}