2024-10-13 17:37:25 +00:00
|
|
|
%import textio
|
|
|
|
%option no_sysinit
|
|
|
|
%zeropage basicsafe
|
|
|
|
|
2024-10-07 17:17:37 +00:00
|
|
|
main {
|
2024-10-13 17:37:25 +00:00
|
|
|
|
2024-10-13 02:20:57 +00:00
|
|
|
sub start() {
|
2024-10-16 00:14:19 +00:00
|
|
|
bool[] barray = [true, false, true, false]
|
|
|
|
uword[] warray = [&value1, &barray, &value5, 4242]
|
|
|
|
|
|
|
|
bool @shared value1
|
|
|
|
bool @shared value2 = barray[2] ; should be const!
|
|
|
|
bool @shared value3 = true
|
|
|
|
bool @shared value4 = false
|
|
|
|
bool @shared value5 = barray[cx16.r0L] ; cannot be const
|
|
|
|
uword @shared value6 = warray[3] ; should be const!
|
|
|
|
uword @shared value7 = warray[2] ; cannot be const
|
|
|
|
|
2024-10-13 17:37:25 +00:00
|
|
|
txt.nl()
|
2024-10-13 02:20:57 +00:00
|
|
|
}
|
2024-09-14 21:17:26 +00:00
|
|
|
}
|