prog8/examples/test.p8
2023-04-07 22:24:17 +02:00

16 lines
231 B
Lua

%import textio
%zeropage basicsafe
main {
sub calc(ubyte x, ubyte y) -> uword {
repeat x+y {
x++
}
return x as uword * y
}
sub start() {
txt.print_uw(calc(22, 33))
}
}