mirror of
https://github.com/a2-4am/4sports.git
synced 2024-06-02 00:41:31 +00:00
Compare commits
8 Commits
d2d45bf0b4
...
bf47cb8c5f
Author | SHA1 | Date | |
---|---|---|---|
|
bf47cb8c5f | ||
|
74b0fdf84d | ||
|
cc1a9ead97 | ||
|
19f1519b11 | ||
|
7752c2acb1 | ||
|
d4ac9a7f64 | ||
|
010c2b03e9 | ||
|
5ecec75f59 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10
src/4cade.a
10
src/4cade.a
|
@ -1,5 +1,5 @@
|
|||
;license:MIT
|
||||
;(c) 2018-2020 by 4am
|
||||
;(c) 2018-2024 by 4am
|
||||
;
|
||||
!cpu 6502
|
||||
!to "build/LAUNCHER.SYSTEM",plain
|
||||
|
@ -63,12 +63,20 @@ Reenter
|
|||
stx $3F2 ; page 3 reset vector to ($100)
|
||||
sei
|
||||
stx $3FE ; page 3 IRQ vector to ($100)
|
||||
lda #<Ignore
|
||||
sta $FFFE
|
||||
inx
|
||||
stx $3FF
|
||||
lda #>Ignore
|
||||
sta $FFFF
|
||||
cli
|
||||
stx $3F3
|
||||
ldx #$A4
|
||||
stx $3F4
|
||||
lda #<Reenter
|
||||
sta $FFFC
|
||||
lda #>Reenter
|
||||
sta $FFFD
|
||||
RestoreStackNextTime
|
||||
bne SearchMode ; (SMC) not an unconditional branch because code
|
||||
; might change the branch target to the next opcode
|
||||
|
|
|
@ -23,6 +23,7 @@ callback
|
|||
stx $9E52
|
||||
inx
|
||||
stx $9E53
|
||||
+LC_REBOOT
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
|
|
49
src/prelaunch/super.icehockey.a
Normal file
49
src/prelaunch/super.icehockey.a
Normal file
|
@ -0,0 +1,49 @@
|
|||
;license:MIT
|
||||
;(c) 2024 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/SUPER.ICEHOCKEY",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
|
||||
lda #$60
|
||||
sta $A02
|
||||
jsr $800 ; load "DOS"
|
||||
lda #<callback
|
||||
sta $B748
|
||||
lda #>callback
|
||||
sta $B749
|
||||
jmp $B700
|
||||
|
||||
callback
|
||||
ldx #0
|
||||
stx $9E52
|
||||
inx
|
||||
stx $9E53
|
||||
lda #<callback2
|
||||
sta $B7B8
|
||||
lda #>callback2
|
||||
sta $B7B9
|
||||
+DISABLE_ACCEL
|
||||
jmp $9D84
|
||||
|
||||
callback2
|
||||
jsr $BD00
|
||||
lda $B7EC
|
||||
eor #$14
|
||||
bne +
|
||||
lda $B7ED
|
||||
eor #$0E
|
||||
bne +
|
||||
sta $9688
|
||||
lsr $968D ; reset vector
|
||||
+LC_REBOOT
|
||||
clc
|
||||
+ rts
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user