mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +00:00
26 lines
507 B
Lua
26 lines
507 B
Lua
%import textio
|
|
%import string
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte ccc
|
|
ubyte @shared qq = string.find("irmendejong", ccc)!=0
|
|
word ww
|
|
ww = calculate(6)
|
|
txt.print_w(ww)
|
|
txt.nl()
|
|
ww = calculate(8)
|
|
txt.print_w(ww)
|
|
txt.nl()
|
|
ww = calculate(10)
|
|
txt.print_w(ww)
|
|
txt.nl()
|
|
qq = string.find("irmendejong", ccc)!=0
|
|
}
|
|
|
|
sub calculate(ubyte row) -> word {
|
|
return 8-(row as byte)
|
|
}
|
|
}
|