prog8/examples/test.p8

16 lines
231 B
Plaintext
Raw Normal View History

2023-03-22 21:00:21 +00:00
%import textio
%zeropage basicsafe
main {
2023-04-07 20:03:13 +00:00
sub calc(ubyte x, ubyte y) -> uword {
repeat x+y {
x++
}
return x as uword * y
}
2023-03-22 21:00:21 +00:00
sub start() {
2023-04-07 20:03:13 +00:00
txt.print_uw(calc(22, 33))
2023-03-18 23:24:05 +00:00
}
}