add prelaunch for Craps

This commit is contained in:
4am 2025-04-05 14:42:43 -04:00
parent ffe713604f
commit c1caf038ad
2 changed files with 21 additions and 2 deletions

View File

@ -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
View 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 ", *
}