2021-12-21 18:08:33 +00:00
|
|
|
%import textio
|
2022-01-23 21:34:05 +00:00
|
|
|
%import string
|
2022-01-23 12:42:52 +00:00
|
|
|
%zeropage basicsafe
|
2021-12-15 22:43:14 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2022-01-18 20:21:49 +00:00
|
|
|
sub start() {
|
2022-01-24 20:37:04 +00:00
|
|
|
str s1 = "irmen@razorvine.net"
|
|
|
|
|
|
|
|
ubyte ff = string.find(s1, '@')
|
|
|
|
if_cs {
|
|
|
|
txt.print_uwhex(&s1+ff, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print(&s1+ff)
|
|
|
|
txt.nl()
|
|
|
|
}
|
|
|
|
|
|
|
|
ff = string.find(s1, 'i')
|
|
|
|
if_cs {
|
|
|
|
txt.print_uwhex(&s1+ff, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print(&s1+ff)
|
|
|
|
txt.nl()
|
|
|
|
}
|
|
|
|
|
|
|
|
ff = string.find(s1, 't')
|
|
|
|
if_cs {
|
|
|
|
txt.print_uwhex(&s1+ff, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print(&s1+ff)
|
|
|
|
txt.nl()
|
|
|
|
}
|
|
|
|
|
|
|
|
ff = string.find(s1, 'q')
|
|
|
|
if_cs {
|
|
|
|
txt.print_uwhex(&s1+ff, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print(&s1+ff)
|
|
|
|
txt.nl()
|
|
|
|
}
|
|
|
|
|
|
|
|
; txt.print_uwhex(s1+ff, true) ; TODO fix compiler crash on s1+ff. why no crash when using 1-argument functioncall?
|
2022-01-23 01:23:30 +00:00
|
|
|
}
|
2022-01-23 01:42:26 +00:00
|
|
|
}
|