2024-01-21 22:05:51 +00:00
|
|
|
%import textio
|
2024-02-07 01:09:08 +00:00
|
|
|
%import string
|
|
|
|
|
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 {
|
|
|
|
sub start() {
|
2024-02-08 21:45:36 +00:00
|
|
|
str name1 = "name1"
|
|
|
|
str name2 = "name2"
|
|
|
|
uword[] @split names = [name1, name2, "name3"]
|
|
|
|
uword[] addresses = [0,0,0]
|
|
|
|
names = [1111,2222,3333]
|
|
|
|
addresses = names
|
|
|
|
;foo("zzz")
|
2024-02-07 21:36:43 +00:00
|
|
|
}
|
2024-02-04 12:50:18 +00:00
|
|
|
|
2024-02-08 01:22:37 +00:00
|
|
|
sub foo (str sarg) {
|
2024-02-08 21:45:36 +00:00
|
|
|
ubyte[3] svar
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(svar, true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(&svar, true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(&svar[2], true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 21:45:36 +00:00
|
|
|
cx16.r1L = 3
|
|
|
|
txt.print_uwhex(&svar[cx16.r1L], true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 21:45:36 +00:00
|
|
|
txt.nl()
|
|
|
|
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(sarg, true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(&sarg, true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 01:22:37 +00:00
|
|
|
txt.print_uwhex(sarg+2, true)
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 01:22:37 +00:00
|
|
|
cx16.r0 = &sarg[2]
|
|
|
|
txt.print_uwhex(cx16.r0, true) ; TODO should be the same as the previous one sarg+2 (13)!
|
2024-02-07 21:36:43 +00:00
|
|
|
txt.nl()
|
2024-02-08 21:45:36 +00:00
|
|
|
cx16.r1L=3
|
|
|
|
cx16.r0 = &sarg[cx16.r1L]
|
|
|
|
txt.print_uwhex(cx16.r0, true) ; TODO should be the same as the previous one sarg+2 (13)!
|
|
|
|
txt.nl()
|
2024-02-03 00:57:17 +00:00
|
|
|
}
|
|
|
|
}
|