2024-01-21 23:05:51 +01:00
|
|
|
%import textio
|
2024-02-10 22:16:13 +01:00
|
|
|
%import math
|
2024-01-23 00:56:06 +01:00
|
|
|
%zeropage basicsafe
|
|
|
|
%option no_sysinit
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-02-10 03:07:49 +01:00
|
|
|
sub start() {
|
2024-02-20 23:01:51 +01:00
|
|
|
ubyte @shared pointer
|
|
|
|
const uword value = 255
|
2024-02-10 22:16:13 +01:00
|
|
|
|
2024-02-20 23:01:51 +01:00
|
|
|
if pointer>value {
|
|
|
|
cx16.r0L++
|
2024-02-11 23:27:26 +01:00
|
|
|
}
|
2024-02-21 17:35:37 +01:00
|
|
|
; if pointer>50000 {
|
|
|
|
; cx16.r0L++
|
|
|
|
; }
|
|
|
|
|
|
|
|
txt.bell()
|
2024-02-10 03:07:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*main222 {
|
2024-01-07 18:48:18 +01:00
|
|
|
sub start() {
|
2024-02-10 03:07:49 +01:00
|
|
|
|
2024-02-10 00:54:15 +01: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 23:55:55 +01:00
|
|
|
txt.nl()
|
2024-02-09 19:55:35 +01:00
|
|
|
|
2024-02-10 03:07:49 +01: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 01:57:17 +01:00
|
|
|
}
|
2024-02-10 03:07:49 +01:00
|
|
|
}*/
|