diff --git a/Makefile b/Makefile index fa68991..56a8051 100644 --- a/Makefile +++ b/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 diff --git a/snake.asm b/snake.asm index a48985a..6220379 100644 --- a/snake.asm +++ b/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 "