mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-10 08:29:34 +00:00
30 lines
662 B
Plaintext
30 lines
662 B
Plaintext
|
!cpu 6502
|
||
|
*=$8000
|
||
|
!to "build/YEWDOW#068000",plain
|
||
|
|
||
|
!src "../common/src/constants.a"
|
||
|
!src "../common/src/macros.a"
|
||
|
|
||
|
jmp start
|
||
|
|
||
|
compressed_data
|
||
|
!bin "src/OBJ.X"
|
||
|
FORWARD_DECRUNCHING = 1
|
||
|
SHOW_PROGRESS_DURING_DECRUNCH = 0
|
||
|
!src "../common/src/exodecrunch.a"
|
||
|
|
||
|
start
|
||
|
+INIT_MACHINE
|
||
|
!if * != $99CD {
|
||
|
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
|
||
|
}
|
||
|
jsr decrunch ; compressed data contains target address
|
||
|
jmp $4000
|
||
|
|
||
|
get_crunched_byte
|
||
|
lda compressed_data
|
||
|
inc get_crunched_byte+1
|
||
|
bne +
|
||
|
inc get_crunched_byte+2
|
||
|
+ rts
|