2024-06-01 13:03:01 +00:00
|
|
|
%import textio
|
2024-08-22 20:54:38 +00:00
|
|
|
%import string
|
2024-06-29 13:41:39 +00:00
|
|
|
%option no_sysinit
|
2024-07-15 22:25:29 +00:00
|
|
|
%zeropage basicsafe
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-07-21 11:35:28 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-07-15 22:25:29 +00:00
|
|
|
sub start() {
|
2024-08-22 20:54:38 +00:00
|
|
|
str name = "zn.iff.jpg"
|
|
|
|
|
|
|
|
ubyte index
|
|
|
|
bool found
|
|
|
|
|
|
|
|
index, found = string.find(name, '.')
|
|
|
|
if found {
|
|
|
|
txt.print_ub(index)
|
|
|
|
txt.nl()
|
|
|
|
} else {
|
|
|
|
txt.print(". not found\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
index, found = string.find(name, '@')
|
|
|
|
if found {
|
|
|
|
txt.print_ub(index)
|
|
|
|
txt.nl()
|
|
|
|
} else {
|
|
|
|
txt.print("@ not found\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
index, found = string.rfind(name, '.')
|
|
|
|
if found {
|
|
|
|
txt.print_ub(index)
|
|
|
|
txt.nl()
|
|
|
|
} else {
|
|
|
|
txt.print(". not r found\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
index, found = string.rfind(name, '@')
|
|
|
|
if found {
|
|
|
|
txt.print_ub(index)
|
|
|
|
txt.nl()
|
|
|
|
} else {
|
|
|
|
txt.print("@ not r found\n")
|
|
|
|
}
|
2024-07-21 11:35:28 +00:00
|
|
|
}
|
|
|
|
}
|