diff --git a/res/DEMO/SNAKE.BYTE b/res/DEMO/SNAKE.BYTE index 4c05d3787..e327c3309 100755 Binary files a/res/DEMO/SNAKE.BYTE and b/res/DEMO/SNAKE.BYTE differ diff --git a/res/DEMO/SNAKE.BYTE.1 b/res/DEMO/SNAKE.BYTE.1 deleted file mode 100755 index abc3e7b7b..000000000 Binary files a/res/DEMO/SNAKE.BYTE.1 and /dev/null differ diff --git a/res/DEMO/_FileInformation.txt b/res/DEMO/_FileInformation.txt index 760adfc67..259407eee 100644 --- a/res/DEMO/_FileInformation.txt +++ b/res/DEMO/_FileInformation.txt @@ -72,7 +72,6 @@ SAMMY.LIGHTFOOT=Type(06),AuxType(BA00),Access(C3) SERPENTINE=Type(06),AuxType(0300),Access(C3) SHORT.CIRCUIT=Type(06),AuxType(0210),Access(C3) SNAKE.BYTE=Type(06),AuxType(0300),Access(C3) -SNAKE.BYTE.1=Type(F1),AuxType(0000),Access(C3) SNEAKERS=Type(06),AuxType(0300),Access(C3) SPACE.EGGS=Type(06),AuxType(0300),Access(C3) SPACE.QUARKS=Type(06),AuxType(B000),Access(C3) diff --git a/src/demo/snake.byte.a b/src/demo/snake.byte.a new file mode 100644 index 000000000..16a6e7868 --- /dev/null +++ b/src/demo/snake.byte.a @@ -0,0 +1,53 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "res/DEMO/SNAKE.BYTE",plain +*=$300 + + !source "src/constants.a" ; no code in these + !source "src/macros.a" + + +READ_RAM2_WRITE_RAM2 + jsr EnableAccelerator + +LOAD_FILE_AT title, $00 + lda #$B9 + sta $842 + lda #$60 + sta $0858 + jsr $0800 ; decompress + + lda #$4C + sta $621F + ldx #0 + stx $6220 + stx $7807 + stx $78ae + stx $7a11 + stx $6414 + stx $6465 + stx $64A4 + stx $64B5 + stx $64C3 + stx $6C13 + stx $7975 + inx + stx $6221 + stx $7808 + stx $78af + stx $7a19 + inc $7A26 + lda #$2C + sta $7A12 + sta $7A1A + jsr DisableAccelerator + +READ_ROM_NO_WRITE + jmp $7680 + +title !byte x_e-x_b +x_b !text "X/SNAKE.BYTE/SNAKE.BYTE" +x_e + +!if * > $3F0 { + !error "code is too large, ends at ", * +}