prog8/examples/test.p8

29 lines
444 B
Plaintext
Raw Normal View History

2024-02-27 00:02:42 +01:00
%import math
%import textio
2024-02-22 17:13:07 +01:00
%zeropage dontuse
%option no_sysinit
main {
2024-02-25 05:02:50 +01:00
sub start() {
2024-02-27 02:37:03 +01:00
if cx16.r0sL > 10
cx16.r1L++
if cx16.r0sL >= 10
cx16.r1L++
if cx16.r0sL < 10
cx16.r1L++
if cx16.r0sL <= 10
cx16.r1L++
2024-02-27 00:02:42 +01:00
}
2024-02-22 23:39:31 +01:00
2024-02-27 00:02:42 +01:00
sub ub() -> ubyte {
cx16.r0++
return cx16.r0L
}
2024-02-22 23:39:31 +01:00
2024-02-27 00:02:42 +01:00
sub sb() -> byte {
cx16.r0++
return cx16.r0sL
}
2024-02-22 23:39:31 +01:00
}
2024-02-25 05:02:50 +01:00