2024-01-21 22:05:51 +00:00
|
|
|
%import textio
|
2024-02-10 21:16:13 +00:00
|
|
|
%import math
|
2024-01-22 23:56:06 +00:00
|
|
|
%zeropage basicsafe
|
|
|
|
%option no_sysinit
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-02-10 02:07:49 +00:00
|
|
|
sub start() {
|
2024-02-11 22:27:26 +00:00
|
|
|
ubyte[256] @shared arr1 = 99
|
|
|
|
ubyte[256] @shared arr2 = 0
|
|
|
|
uword[128] @shared warr1 = 9999
|
|
|
|
uword[128] @shared warr2 = 0
|
2024-02-10 21:16:13 +00:00
|
|
|
|
2024-02-11 22:27:26 +00:00
|
|
|
txt.print_ub(all(arr2))
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(all(warr2))
|
|
|
|
txt.nl()
|
|
|
|
arr2 = arr1
|
|
|
|
warr2 = warr1
|
|
|
|
txt.print_ub(all(arr2))
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(all(warr2))
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
|
|
|
|
uword[] @split cave_times = [1111,2222,3333,4444]
|
|
|
|
cave_times = [9999,8888,7777,6666]
|
2024-02-10 02:07:49 +00:00
|
|
|
|
2024-02-10 21:58:44 +00:00
|
|
|
for cx16.r0L in 0 to len(cave_times)-1 {
|
2024-02-11 22:27:26 +00:00
|
|
|
txt.print_uw(cave_times[cx16.r0L])
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
ubyte[] cave_times2 = [11,22,33,44]
|
|
|
|
cave_times2 = [99,88,77,66]
|
|
|
|
|
|
|
|
for cx16.r0L in 0 to len(cave_times2)-1 {
|
|
|
|
txt.print_ub(cave_times2[cx16.r0L])
|
2024-02-10 02:07:49 +00:00
|
|
|
txt.spc()
|
|
|
|
}
|
2024-02-10 21:58:44 +00:00
|
|
|
txt.nl()
|
2024-02-10 02:07:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*main222 {
|
2024-01-07 17:48:18 +00:00
|
|
|
sub start() {
|
2024-02-10 02:07:49 +00:00
|
|
|
|
2024-02-09 23:54:15 +00:00
|
|
|
str name1 = "name1"
|
|
|
|
str name2 = "name2"
|
|
|
|
uword[] @split names = [name1, name2, "name3"]
|
|
|
|
uword[] addresses = [0,1,2]
|
|
|
|
names = [1111,2222,3333]
|
|
|
|
|
|
|
|
for cx16.r0 in names {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
2024-02-09 22:55:55 +00:00
|
|
|
txt.nl()
|
2024-02-09 18:55:35 +00:00
|
|
|
|
2024-02-10 02:07:49 +00:00
|
|
|
addresses = names
|
|
|
|
|
|
|
|
for cx16.r0 in addresses {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
names = [9999,8888,7777]
|
|
|
|
names = addresses
|
|
|
|
for cx16.r0 in names {
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
2024-02-03 00:57:17 +00:00
|
|
|
}
|
2024-02-10 02:07:49 +00:00
|
|
|
}*/
|