2024-10-12 00:56:36 +00:00
|
|
|
%option no_sysinit, enable_floats
|
|
|
|
%zeropage basicsafe
|
2024-10-08 19:25:37 +00:00
|
|
|
|
2024-10-07 17:17:37 +00:00
|
|
|
main {
|
2024-10-08 19:25:37 +00:00
|
|
|
sub start() {
|
2024-10-12 00:56:36 +00:00
|
|
|
ubyte[] array = [1,2,3]
|
|
|
|
ubyte[3] array2
|
|
|
|
float[] flarray = [1.1, 2.2, 3.3]
|
|
|
|
float[3] flarray2
|
|
|
|
word[] warray = [-2222,42,3333]
|
|
|
|
word[3] warray2
|
|
|
|
str[] names = ["apple", "banana", "tomato"]
|
|
|
|
str[3] names2
|
2024-10-08 22:51:05 +00:00
|
|
|
|
2024-10-12 00:56:36 +00:00
|
|
|
; 8 array assignments -> 8 arraycopies:
|
|
|
|
array = [8,7,6]
|
|
|
|
array = array2
|
|
|
|
flarray = [99.9, 88.8, 77.7]
|
|
|
|
flarray = flarray2
|
|
|
|
warray = [4444,5555,6666]
|
|
|
|
warray = warray2
|
|
|
|
names = ["x1", "x2", "x3"]
|
|
|
|
names = names2
|
2024-10-07 18:39:49 +00:00
|
|
|
}
|
2024-09-14 21:17:26 +00:00
|
|
|
}
|