4sports/res/ports/hires-football/src/hires.football.a

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-04-02 02:53:53 +00:00
!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"
2024-04-03 23:56:08 +00:00
FORWARD_DECRUNCHING = 1
2024-04-02 02:53:53 +00:00
SHOW_PROGRESS_DURING_DECRUNCH = 1
kExoProgressWidth = 14 ; depends on total size, max 38
!src "../common/src/exodecrunch.a"
start
+INIT_MACHINE
!if * != $AD5C {
2024-04-21 19:43:11 +00:00
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
2024-04-02 02:53:53 +00:00
}
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