mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-27 12:30:30 +00:00
Pegasus II reset vector
This commit is contained in:
parent
d6caf60471
commit
c2c90af996
55
src/prelaunch/pegasus.ii.a
Normal file
55
src/prelaunch/pegasus.ii.a
Normal file
@ -0,0 +1,55 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/PEGASUS.II",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $9E0
|
||||
jsr $800 ; load "DOS"
|
||||
lda #>callback
|
||||
sta $BD08
|
||||
lda #<callback
|
||||
sta $BD07
|
||||
+DISABLE_ACCEL
|
||||
jmp $B700
|
||||
|
||||
callback
|
||||
pla
|
||||
pla
|
||||
jsr $BD3C
|
||||
jsr $BD09
|
||||
ldx #0
|
||||
ldy $B7ED
|
||||
lda $B7EC
|
||||
beq checksec
|
||||
cmp #$13
|
||||
bne nottrack
|
||||
cpy #$0B
|
||||
bne nottrack
|
||||
stx $9949
|
||||
inx
|
||||
stx $994A
|
||||
lda #$A4
|
||||
sta $994B
|
||||
clc
|
||||
rts
|
||||
|
||||
checksec
|
||||
cpy #$0C
|
||||
bne nottrack
|
||||
stx $9E52
|
||||
inx
|
||||
stx $9E53
|
||||
nottrack
|
||||
|
||||
clc
|
||||
rts
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user