mirror of
https://github.com/a2-4am/4sports.git
synced 2024-12-22 14:30:59 +00:00
Championship Wrestling reset vector
This commit is contained in:
parent
9f7aeaa69f
commit
743b33a88d
40
src/prelaunch/champ.wrestle.a
Normal file
40
src/prelaunch/champ.wrestle.a
Normal file
@ -0,0 +1,40 @@
|
||||
;license:MIT
|
||||
;(c) 2024 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/CHAMP.WRESTLE",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #$60
|
||||
sta $9DE
|
||||
jsr $800 ; load "DOS"
|
||||
lda #$4C
|
||||
sta $B79C
|
||||
lda #<callback
|
||||
sta $B79D
|
||||
lda #>callback
|
||||
sta $B79E
|
||||
+DISABLE_ACCEL
|
||||
|
||||
jmp $B700
|
||||
|
||||
callback
|
||||
lda $B7B3
|
||||
cmp #8
|
||||
bne +
|
||||
lda $B7B4
|
||||
cmp #6
|
||||
bne +
|
||||
sta $8400 ; reset vector to reboot
|
||||
+
|
||||
ldx #$ff
|
||||
txs
|
||||
jmp $B79F
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user