1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-15 17:08:51 +00:00
C02/test/define.c02

20 lines
297 B
Plaintext
Raw Normal View History

2018-01-28 19:47:06 +00:00
/* Test C02 define directive */
2018-03-03 19:35:12 +00:00
#pragma origin 1000
2018-01-28 19:47:06 +00:00
#define TRUE = $FF
#define FALSE = 0
2018-03-07 16:38:22 +00:00
#define BITS = %01010101
#define ZED = 'Z'
#enum SOLO
2018-03-03 19:35:12 +00:00
#enum ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN
char a = {#TRUE, #FALSE};
2018-01-28 19:47:06 +00:00
char b;
2018-03-03 19:35:12 +00:00
char f = #FALSE;
char t = #TRUE;
2018-01-28 19:47:06 +00:00
b = #TRUE;