mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
D-generation reset vector
This commit is contained in:
parent
1530bf9395
commit
68fbc7ec40
36
src/prelaunch/d.generation.a
Normal file
36
src/prelaunch/d.generation.a
Normal file
@ -0,0 +1,36 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/D.GENERATION",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $1405
|
||||
jsr $1200 ; load "DOS"
|
||||
lda #$60
|
||||
sta $B64E
|
||||
jsr $B600
|
||||
ldy #9
|
||||
- lda callback, y
|
||||
sta $200, y
|
||||
dey
|
||||
bpl -
|
||||
lda #0
|
||||
sta $6009
|
||||
lda #2
|
||||
sta $600A
|
||||
jsr DisableAccelerator
|
||||
jmp $6000
|
||||
|
||||
callback
|
||||
jsr $62F0
|
||||
sta $D9F7
|
||||
jmp $600B
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user