mirror of
https://github.com/a2-4am/4sports.git
synced 2025-04-06 12:38:01 +00:00
add prelaunch for Craps
This commit is contained in:
parent
ffe713604f
commit
c1caf038ad
@ -15,8 +15,8 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
|
||||
|
||||
start
|
||||
+INIT_MACHINE
|
||||
!if * != $18B6 {
|
||||
; !serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
|
||||
!if * != $614d {
|
||||
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
|
||||
}
|
||||
jsr decrunch ; compressed data contains target address
|
||||
ldx #0
|
||||
|
19
src/prelaunch/craps.a
Normal file
19
src/prelaunch/craps.a
Normal file
@ -0,0 +1,19 @@
|
||||
;license:MIT
|
||||
;(c) 2025 by 4am
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/CRAPS",plain
|
||||
*=$106
|
||||
|
||||
!source "src/macros.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$4C
|
||||
sta $614D
|
||||
jsr $4000
|
||||
+DISABLE_ACCEL
|
||||
jmp $6150
|
||||
|
||||
!if * > PrelaunchMax {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user