2023-02-19 02:07:55 +00:00
|
|
|
%import textio
|
|
|
|
%option no_sysinit
|
2023-02-09 20:53:35 +00:00
|
|
|
%zeropage basicsafe
|
2023-03-10 03:07:50 +00:00
|
|
|
%import floats
|
2023-02-09 20:53:35 +00:00
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2022-11-29 23:15:13 +00:00
|
|
|
sub start() {
|
2023-03-10 03:07:50 +00:00
|
|
|
uword[] array= [1111,2222,3333]
|
2023-03-10 00:02:25 +00:00
|
|
|
ubyte idx=1
|
2023-03-10 03:07:50 +00:00
|
|
|
txt.print_uw(array[idx])
|
2023-03-10 00:02:25 +00:00
|
|
|
txt.nl()
|
2023-03-10 03:07:50 +00:00
|
|
|
array[idx]+=1234
|
|
|
|
txt.print_uw(array[idx])
|
2023-03-10 00:02:25 +00:00
|
|
|
txt.nl()
|
2023-02-19 02:07:55 +00:00
|
|
|
|
2023-03-10 03:07:50 +00:00
|
|
|
ubyte[] array2= [11,22,33]
|
|
|
|
idx=1
|
|
|
|
txt.print_ub(array2[idx])
|
2023-02-19 17:12:37 +00:00
|
|
|
txt.nl()
|
2023-03-10 03:07:50 +00:00
|
|
|
array2[idx]+=34
|
|
|
|
txt.print_ub(array2[idx])
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
float[] array3= [11.11,22.22,33.33]
|
|
|
|
idx=1
|
|
|
|
floats.print_f(array3[idx])
|
|
|
|
txt.nl()
|
|
|
|
array3[idx]+=55.66
|
|
|
|
floats.print_f(array3[idx])
|
2023-02-19 17:12:37 +00:00
|
|
|
txt.nl()
|
2022-12-04 15:02:58 +00:00
|
|
|
}
|
|
|
|
}
|