polishing
This commit is contained in:
parent
157c8598e6
commit
6e0d335b83
8
Makefile
8
Makefile
@ -8,7 +8,7 @@ RES=res.bin/amour2.sid res.bin/levels.bin res.bin/unlzg.bin
|
|||||||
all: bin/snake6502.bin bin/snake6502.d64
|
all: bin/snake6502.bin bin/snake6502.d64
|
||||||
|
|
||||||
bin/snake6502.bin: bin/snake.pack.lz
|
bin/snake6502.bin: bin/snake.pack.lz
|
||||||
dasm src/cart.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f3 -T1 -sbuild/cart.symbols.txt -obin/snake6502.bin
|
dasm src/cart.asm -Isrc/ -f3 -T1 -sbuild/cart.symbols.txt -obin/snake6502.bin
|
||||||
|
|
||||||
bin/snake6502.d64: bin/loader.prg
|
bin/snake6502.d64: bin/loader.prg
|
||||||
c1541 -format "snake6502,01" d64 bin/snake6502.d64
|
c1541 -format "snake6502,01" d64 bin/snake6502.d64
|
||||||
@ -16,13 +16,13 @@ bin/snake6502.d64: bin/loader.prg
|
|||||||
c1541 -attach bin/snake6502.d64 -write bin/snake.pack.lz.prg packlz
|
c1541 -attach bin/snake6502.d64 -write bin/snake.pack.lz.prg packlz
|
||||||
|
|
||||||
bin/loader.prg: bin/snake.pack.lz.prg
|
bin/loader.prg: bin/snake.pack.lz.prg
|
||||||
dasm src/loader.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f1 -sbuild/loader.sybols.txt -obin/loader.prg
|
dasm src/loader.asm -Isrc/ -f1 -sbuild/loader.sybols.txt -obin/loader.prg
|
||||||
|
|
||||||
bin/snake.prg: bin/snake.pack
|
bin/snake.prg: bin/snake.pack
|
||||||
dasm src/prg.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f1 -T1 -sbuild/prg.symbols.txt -obin/snake.prg
|
dasm src/prg.asm -Isrc/ -f1 -T1 -sbuild/prg.symbols.txt -obin/snake.prg
|
||||||
|
|
||||||
bin/snake.pack: env $(ASM) $(RES) bin/explodefont
|
bin/snake.pack: env $(ASM) $(RES) bin/explodefont
|
||||||
dasm src/main.asm -Isrc/ -DSYSTEM=64 -DDEBUG=$(DEBUG) -DVERBOSE=$(VERBOSE) -f3 -T1 -sbuild/pack.symbols.txt -obin/snake.pack
|
dasm src/main.asm -Isrc/ -DSYSTEM=64 -DDEBUG=$(DEBUG) -f3 -T1 -sbuild/pack.symbols.txt -obin/snake.pack
|
||||||
|
|
||||||
bin/snake.pack.lz: bin/snake.pack liblzg/src/tools/lzg
|
bin/snake.pack.lz: bin/snake.pack liblzg/src/tools/lzg
|
||||||
liblzg/src/tools/lzg bin/snake.pack > bin/snake.pack.lz
|
liblzg/src/tools/lzg bin/snake.pack > bin/snake.pack.lz
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# snake6502
|
# snake6502
|
||||||
|
|
||||||
|
![Intro screenshot](scrot/intro.png)
|
||||||
![Gameplay screenshot](scrot/gameplay.png)
|
![Gameplay screenshot](scrot/gameplay.png)
|
||||||
|
|
||||||
*snake6502* is a snake-like game clone for Commodore home computers, written for fun because «I always wanted to code something for a computer of my retrocomputers collection – actually, this is the main reason I collect them: to write programs».
|
*snake6502* is a snake-like game clone for Commodore home computers, written for fun because «I always wanted to code something for a computer of my retrocomputers collection – actually, this is the main reason I collect them: to write programs».
|
||||||
@ -26,8 +27,6 @@ You can also define the following environment variables:
|
|||||||
|
|
||||||
```$ DEBUG=1 make``` build with debugging artifacts
|
```$ DEBUG=1 make``` build with debugging artifacts
|
||||||
|
|
||||||
```$ VERBOSE=1 make``` output useful info during compilation
|
|
||||||
|
|
||||||
## Tape
|
## Tape
|
||||||
Copy ```loader.prg``` and ```packlz``` from disk to tape.
|
Copy ```loader.prg``` and ```packlz``` from disk to tape.
|
||||||
On a physical machine, you can use [disk2tape](https://git.giomba.it/giomba/cbmutil).
|
On a physical machine, you can use [disk2tape](https://git.giomba.it/giomba/cbmutil).
|
||||||
|
BIN
scrot/intro.png
Normal file
BIN
scrot/intro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
@ -1,10 +1,12 @@
|
|||||||
processor 6502
|
processor 6502
|
||||||
|
|
||||||
|
; SEGMENTS
|
||||||
SEG.U zeropageSegment
|
SEG.U zeropageSegment
|
||||||
org $02
|
org $02
|
||||||
SEG loaderSegment
|
SEG loaderSegment
|
||||||
org $8000
|
org $8000
|
||||||
|
|
||||||
|
; LOADER
|
||||||
SEG loaderSegment
|
SEG loaderSegment
|
||||||
cartridge SUBROUTINE
|
cartridge SUBROUTINE
|
||||||
WORD .coldstart
|
WORD .coldstart
|
||||||
@ -46,10 +48,8 @@ cartridge SUBROUTINE
|
|||||||
; decompression util
|
; decompression util
|
||||||
INCLUDE "lzgmini.asm"
|
INCLUDE "lzgmini.asm"
|
||||||
|
|
||||||
#if VERBOSE = 1
|
|
||||||
ECHO "8k CARTRIDGE SIZE:",(. - $8000),"=",[(. - $8000)d]
|
ECHO "8k CARTRIDGE SIZE:",(. - $8000),"=",[(. - $8000)d]
|
||||||
ECHO "SPACE LEFT:",($9fff - .),"=",[($9fff - .)d]
|
ECHO "SPACE LEFT:",($9fff - .),"=",[($9fff - .)d]
|
||||||
#endif
|
|
||||||
|
|
||||||
; force filler for the *PROM
|
; force filler for the *PROM
|
||||||
. = $9fff
|
. = $9fff
|
||||||
|
@ -54,7 +54,4 @@ packFileName:
|
|||||||
BYTE "PACKLZ"
|
BYTE "PACKLZ"
|
||||||
packFileNameEnd:
|
packFileNameEnd:
|
||||||
|
|
||||||
#if VERBOSE = 1
|
|
||||||
ECHO "PRG SIZE:",(. - $801),"=",[(. - $801)d]
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
26
src/prg.asm
26
src/prg.asm
@ -1,26 +0,0 @@
|
|||||||
processor 6502
|
|
||||||
|
|
||||||
SEG.U
|
|
||||||
org $02
|
|
||||||
INCLUDE "zeropage.asm"
|
|
||||||
|
|
||||||
SEG autostart
|
|
||||||
org $801
|
|
||||||
autostartRoutine SUBROUTINE
|
|
||||||
; this is at $801
|
|
||||||
; and it MUST be exactly at this location in order to autostart
|
|
||||||
; 10 SYS2060 ($80c) BASIC autostart
|
|
||||||
BYTE #$0b,#$08,#$0a,#$00,#$9e,#$32,#$30,#$36,#$31,#$00,#$00,#$00
|
|
||||||
|
|
||||||
; this is at (2061 dec)=($80d)
|
|
||||||
; and it MUST be exactly after the above BASIC statement
|
|
||||||
. = $80d
|
|
||||||
jmp $2800
|
|
||||||
|
|
||||||
. = $1000
|
|
||||||
INCBIN "../bin/snake.pack"
|
|
||||||
|
|
||||||
#if VERBOSE = 1
|
|
||||||
ECHO "PRG SIZE:",(. - $801 + 2),"=",[(. - $801 + 2)d]
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user