1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 21:33:44 +00:00
C02/work/arrays.c02

30 lines
550 B
Plaintext
Raw Normal View History

/* Test C02 array manipulation */
#pragma origin 1000
char b, c, i;
char r[255];
2018-08-04 22:29:04 +00:00
const char s = "string";
const char d = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
const char n = {1, 2, 3, 4, 5, 6, 7, 8, 9};
const char t = {"eins", 1, "zwei", 2, "drei", 3, "vier", 4};
2018-08-11 04:13:57 +00:00
const char z = "zero";
char func();
2018-08-11 04:13:57 +00:00
puts(" ");
c = d[3];
b = n[i];
b = s[n[i]];
b = s[c + n[i-1]];
b = s[func()];
b = s[0] & d[c-1] | n[i+2];
b = s[A] + b[X] + c[Y];
r[0], r[1], r[2] = func();
r[b], r[c], r[i] = func();
pop b, d[i], n[func()], s[c-n[i+3]];