mirror of
https://github.com/irmen/prog8.git
synced 2024-10-07 15:57:03 +00:00
29 lines
470 B
Lua
29 lines
470 B
Lua
%import textio
|
|
%option no_sysinit
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
byte v1s = 22
|
|
byte v2s = -99
|
|
word ww
|
|
|
|
txt.print_w(minsb()) ; TODO WRONG RESULT!
|
|
txt.spc()
|
|
ww = minsb()
|
|
txt.print_w(ww)
|
|
txt.spc()
|
|
txt.print_b(minsb())
|
|
txt.spc()
|
|
v2s = minsb()
|
|
txt.print_w(v2s)
|
|
|
|
sub minsb() -> byte {
|
|
cx16.r0++
|
|
return v2s
|
|
}
|
|
}
|
|
|
|
}
|
|
|