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 00:17:19 +00:00
|
|
|
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) {
|
|
|
|
str svar = "irmen"
|
|
|
|
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()
|
|
|
|
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-03 00:57:17 +00:00
|
|
|
}
|
|
|
|
}
|