4cade/src/demo/snake.byte.a

59 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-07-21 23:41:23 +00:00
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
2022-10-01 00:04:02 +00:00
!to "build/DEMO/SNAKE.BYTE#060300",plain
2022-07-21 23:41:23 +00:00
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
2022-09-27 17:20:04 +00:00
+ENABLE_ACCEL_LC
2022-09-10 05:36:52 +00:00
+LOAD_XSINGLE title
2022-07-21 23:41:23 +00:00
lda #$B9
sta $842
lda #$60
sta $0858
jsr $0800 ; decompress
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch,x
sta $621F,x
dex
bpl -
inx
2022-07-21 23:41:23 +00:00
stx $7807
stx $78ae
stx $7a11
stx $6414
stx $6465
stx $64A4
stx $64B5
stx $64C3
stx $6C13
stx $7975
inx
stx $7808
stx $78af
stx $7a19
inc $7A26
lda #$2C
sta $7A12
sta $7A1A
2022-09-10 05:36:52 +00:00
+DISABLE_ACCEL
2022-07-21 23:41:23 +00:00
jmp $7680
2022-09-27 17:20:04 +00:00
patch !byte $4C,$00,$01
2022-07-21 23:41:23 +00:00
title !byte x_e-x_b
2022-09-10 05:36:52 +00:00
x_b !text "SNAKE.BYTE"
2022-07-21 23:41:23 +00:00
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}