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:
giomba 2018-09-05 22:03:20 +02:00
parent 78ac2fffa9
commit a15c924d53
2 changed files with 18 additions and 2 deletions

View File

@ -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

View File

@ -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 "