2021-10-31 16:39:38 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-09-30 17:56:47 +00:00
|
|
|
!to "build/DEMO/SPACE.EGGS",plain
|
2021-10-31 16:39:38 +00:00
|
|
|
*=$300
|
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
2021-11-01 04:29:36 +00:00
|
|
|
+GAME_REQUIRES_JOYSTICK
|
2022-09-27 17:20:04 +00:00
|
|
|
+ENABLE_ACCEL_LC
|
2022-09-10 05:36:52 +00:00
|
|
|
+LOAD_XSINGLE title
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
+NEW_RESET_VECTOR $280
|
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $2056
|
|
|
|
jsr $2000 ; decompress
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #6-1
|
2021-10-31 16:39:38 +00:00
|
|
|
lda #$EA
|
2022-09-27 17:20:04 +00:00
|
|
|
- sta $4821,x ; avoid clobbering stack
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-31 16:39:38 +00:00
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch2,x
|
|
|
|
sta $4B00,x ; change button press detection to keypress detection
|
|
|
|
lda patch3,x
|
|
|
|
sta $4B06,x ; exit on keypress
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
ldx #11-1
|
|
|
|
- lda patch, x
|
|
|
|
sta $4BD6, x
|
|
|
|
dex
|
|
|
|
bpl - ; decrement custom counter after demo cycle and eventually exit
|
|
|
|
|
|
|
|
lda #$02
|
|
|
|
sta $4BFF ; initialize custom counter
|
|
|
|
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
|
|
|
|
jmp $4880
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $CE,$FF,$4B,$10,$03
|
|
|
|
patch3 !byte $4C,$00,$01,$4C,$B0,$4B
|
|
|
|
patch2 !byte $AD,$00,$C0
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
title !byte x_e-x_b
|
2022-09-10 05:36:52 +00:00
|
|
|
x_b !text "SPACE.EGGS"
|
2021-10-31 16:39:38 +00:00
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|