2019-09-15 02:57:52 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2019 by qkumba
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "build/PRELAUNCH/STANDARD",plain
|
|
|
|
*=$106
|
|
|
|
|
2019-12-05 05:11:58 +00:00
|
|
|
ldy $5A ; set up game entry point in stack page
|
|
|
|
ldx $59 ; (last ProRWTS load address - 1)
|
|
|
|
bne +
|
2019-09-15 02:57:52 +00:00
|
|
|
dey
|
2019-12-05 05:11:58 +00:00
|
|
|
+ dex
|
|
|
|
stx $1FE
|
2019-09-15 02:57:52 +00:00
|
|
|
sty $1FF
|
|
|
|
|
2019-09-17 05:19:15 +00:00
|
|
|
!source "src/prelaunch/common.a"
|
2019-09-15 02:57:52 +00:00
|
|
|
|
|
|
|
ldx #$FD ; Jump to game entry point via stack pop.
|
|
|
|
txs
|
|
|
|
rts
|
2019-12-13 05:51:54 +00:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|