Added skeleton for multiplatform development
Just added some preprocessor instructions and some sample code to show how to use them. This should be useful for the future port on C16.
This commit is contained in:
parent
78ac2fffa9
commit
a15c924d53
7
Makefile
7
Makefile
@ -1,2 +1,5 @@
|
||||
all:
|
||||
dasm snake.asm -osnake.prg
|
||||
64:
|
||||
dasm snake.asm -DSYSTEM=64 -osnake.prg
|
||||
|
||||
16:
|
||||
dasm snake.asm -DSYSTEM=16 -osnake.prg
|
||||
|
13
snake.asm
13
snake.asm
@ -1,5 +1,14 @@
|
||||
processor 6502
|
||||
|
||||
; Platform specific code
|
||||
; Code yet to be developed, example to use:
|
||||
; ----------------------------------------------------------------------
|
||||
#if SYSTEM = 64
|
||||
; Commodore64 specific code
|
||||
#else
|
||||
; Commodore16 specific code
|
||||
#endif
|
||||
|
||||
; Zero page utilities
|
||||
; ----------------------------------------------------------------------
|
||||
|
||||
@ -104,7 +113,11 @@ gameoverString:
|
||||
BYTE "GAME IS OVER"
|
||||
BYTE #0
|
||||
intro0string:
|
||||
#if SYSTEM = 64
|
||||
BYTE " SNAKE BY GIOMBA "
|
||||
#else
|
||||
BYTE " SNAKE16 BY GIOMBA "
|
||||
#endif
|
||||
BYTE #0
|
||||
intro1string:
|
||||
BYTE " PRESS SPACE TO PLAY "
|
||||
|
Loading…
Reference in New Issue
Block a user