2024-10-13 17:37:25 +00:00
|
|
|
%import floats
|
|
|
|
%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-13 17:37:25 +00:00
|
|
|
uword[4] words1 = [1,2,3,4]
|
|
|
|
uword[4] words2 = [99,88,77,66]
|
|
|
|
|
|
|
|
for cx16.r0 in words1 {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
2024-10-13 19:33:13 +00:00
|
|
|
cx16.r0L = words2
|
|
|
|
sys.memsetw(words1, len(words1), 99)
|
2024-10-13 17:37:25 +00:00
|
|
|
for cx16.r0 in words1 {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
|
|
|
sys.memcopy([2222,3333,4444,5555], words1, sizeof(words1))
|
|
|
|
for cx16.r0 in words1 {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
2024-10-13 02:20:57 +00:00
|
|
|
}
|
2024-09-14 21:17:26 +00:00
|
|
|
}
|