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

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"
FORWARD_DECRUNCHING = 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 ", *, " to JMP"
}
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