1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-07-04 13:29:29 +00:00
C02/test/const.c02

21 lines
391 B
Plaintext
Raw Normal View History

2018-03-07 16:38:22 +00:00
/* Test C02 define directive */
#pragma origin 1000
const #TRUE = $FF, #FALSE = 0;
const #BITS = %01010101;
const #ZED = 'Z';
2018-03-07 17:00:33 +00:00
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};
2018-03-07 16:38:22 +00:00
char a = {#TRUE, #FALSE};
char b;
char f = #FALSE;
char t = #TRUE;
b = #TRUE;