2024-01-04 14:02:21 +00:00
|
|
|
%import textio
|
2024-01-05 19:46:26 +00:00
|
|
|
%import string
|
2023-12-31 00:02:33 +00:00
|
|
|
%zeropage basicsafe
|
2024-01-03 23:30:20 +00:00
|
|
|
%option no_sysinit
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
2023-12-30 03:34:07 +00:00
|
|
|
sub start() {
|
2024-01-05 23:04:15 +00:00
|
|
|
str s = "the quick brown fox jumps over the lazy dog."
|
|
|
|
uword sp = &s
|
2024-01-05 19:46:26 +00:00
|
|
|
|
2024-01-05 23:04:15 +00:00
|
|
|
cbm.SETTIM(0,0,0)
|
|
|
|
repeat 5000 {
|
|
|
|
cx16.r0L = 'v' in s
|
2024-01-05 19:46:26 +00:00
|
|
|
}
|
2024-01-05 23:04:15 +00:00
|
|
|
txt.print_uw(cbm.RDTIM16())
|
|
|
|
txt.nl()
|
2024-01-05 19:46:26 +00:00
|
|
|
|
2024-01-05 23:04:15 +00:00
|
|
|
cbm.SETTIM(0,0,0)
|
|
|
|
repeat 5000 {
|
|
|
|
cx16.r0L = string.contains(s, 'v')
|
2024-01-05 19:46:26 +00:00
|
|
|
}
|
2024-01-05 23:04:15 +00:00
|
|
|
txt.print_uw(cbm.RDTIM16())
|
2024-01-05 19:46:26 +00:00
|
|
|
txt.nl()
|
2024-01-04 19:44:46 +00:00
|
|
|
|
2023-12-26 21:01:49 +00:00
|
|
|
}
|
2023-12-19 21:59:01 +00:00
|
|
|
}
|