1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00
C02/work/const.c02

28 lines
569 B
Plaintext
Raw Normal View History

2018-03-07 16:38:22 +00:00
/* Test C02 define directive */
2018-08-03 20:38:20 +00:00
#pragma origin 1024
2018-03-07 16:38:22 +00:00
2018-08-03 20:38:20 +00:00
#define TRUE $FF
#define FALSE 0
2018-03-07 16:38:22 +00:00
2018-08-03 20:38:20 +00:00
#define BITS %01010101
#define ZED 'Z'
2018-03-07 16:38:22 +00:00
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
2018-08-03 20:38:20 +00:00
//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;
2018-03-07 16:38:22 +00:00
b = #TRUE;
2018-08-03 20:38:20 +00:00
b = tandf[i];
//t = #FALSE; - Errors
//b, t = test();
//b, i, t = test();