4sports/res/ports/odin/src/odin.a

46 lines
1.1 KiB
Plaintext

!cpu 6502
*=$8000
!to "build/ODIN#068000",plain
!src "../common/src/constants.a"
!src "../common/src/macros.a"
jmp start
compressed_data
!bin "src/OBJ1.X"
!bin "src/OBJ2.X"
FORWARD_DECRUNCHING = 1
SHOW_PROGRESS_DURING_DECRUNCH = 1
kExoProgressWidth = 12 ; depends on total size, max 38
!src "../common/src/exodecrunch.a"
start
+INIT_MACHINE
jsr decrunch ; compressed data contains target address
jsr decrunch_no_reset_progress
!if * != $AA2F {
!serious "Adjust prelaunch to RTS at ", *
}
bit GFXMODE
bit PAGE2
bit HIRES
bit MIXEDGFX
bit CLEARKBD
ldy #$19 ; wait loop based on code from original game
- bit KBD ; but allow pressing key to start game early
bmi +
lda #$00
jsr ROM_WAIT
dey
bne -
+ bit CLEARKBD
jmp $7E54
get_crunched_byte
lda compressed_data
inc get_crunched_byte+1
bne +
inc get_crunched_byte+2
+ rts