1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-24 15:31:17 +00:00
C02/work/const.c02
2018-08-11 00:18:23 -04:00

28 lines
569 B
Plaintext

/* Test C02 define directive */
#pragma origin 1024
#define TRUE $FF
#define FALSE 0
#define BITS %01010101
#define ZED 'Z'
enum {SOLO};
enum {BLACK, WHITE, RED, CYAN, PURPLE, GREEN, BLUE, YELLOW};
enum {NONE, FIRST, SECOND, THIRD};
enum {ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN};
//char b = #TRUE; - Error
char b,i;
aligned const char v = {0,1,2,3,4,5,6,7,8,9};
aligned char m[255];
const char tandf = {#TRUE, #FALSE};
const char t = #TRUE, f = #FALSE;
b = #TRUE;
b = tandf[i];
//t = #FALSE; - Errors
//b, t = test();
//b, i, t = test();