mirror of
https://github.com/a2-4am/4sports.git
synced 2024-09-29 10:54:31 +00:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
|
!cpu 6502
|
||
|
*=$8000
|
||
|
!to "build/HIRES.FOOTBALL#068000",plain
|
||
|
|
||
|
!src "../common/src/constants.a"
|
||
|
!src "../common/src/macros.a"
|
||
|
|
||
|
jmp start
|
||
|
|
||
|
compressed_data
|
||
|
!bin "src/OBJ.X"
|
||
|
DECRUNCH_FORWARDS = 1
|
||
|
SHOW_PROGRESS_DURING_DECRUNCH = 1
|
||
|
kExoProgressWidth = 14 ; depends on total size, max 38
|
||
|
!src "../common/src/exodecrunch.a"
|
||
|
|
||
|
start
|
||
|
+INIT_MACHINE
|
||
|
!if * != $AD5C {
|
||
|
!serious "Adjust prelaunch to patch JSR at ", *
|
||
|
}
|
||
|
jsr decrunch ; compressed data contains target address
|
||
|
jsr ROM_TEXT ; game expects current VTAB to be at bottom
|
||
|
bit GFXMODE
|
||
|
bit PAGE1
|
||
|
bit HIRES
|
||
|
bit FULLGFX
|
||
|
ldx #$04
|
||
|
ldy #$00
|
||
|
@a lda $7100, y
|
||
|
@b sta $0400, y
|
||
|
iny
|
||
|
bne @a
|
||
|
inc @a+2
|
||
|
inc @b+2
|
||
|
dex
|
||
|
bne @a
|
||
|
jmp $4000
|
||
|
|
||
|
get_crunched_byte
|
||
|
lda compressed_data
|
||
|
inc get_crunched_byte+1
|
||
|
bne +
|
||
|
inc get_crunched_byte+2
|
||
|
+ rts
|