1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-08-07 22:25:13 +00:00
Files
kickc/src/test/kc/complex-conditional-problem.kc
2019-03-18 18:24:03 +01:00

15 lines
279 B
Plaintext

// Test to provoke Exception when using complex || condition
const byte* RASTER = $d012;
const byte* SCREEN = $0400;
void main() {
while(true) {
byte key = *RASTER;
if (key > $20 || key < $40) {
key = 0;
}
*SCREEN = key;
}
}