mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +00:00
24 lines
369 B
Lua
24 lines
369 B
Lua
%import textio
|
|
%import string
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
word ww = calculate(6)
|
|
txt.print_w(ww)
|
|
txt.nl()
|
|
ubyte bb = calculate2(6)
|
|
txt.print_ub(bb)
|
|
txt.nl()
|
|
}
|
|
|
|
sub calculate2(ubyte row) -> ubyte {
|
|
return 8+row
|
|
}
|
|
|
|
|
|
sub calculate(ubyte row) -> word {
|
|
return 8+row
|
|
}
|
|
}
|