mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
37 lines
530 B
Lua
37 lines
530 B
Lua
%import test_stack
|
|
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
|
|
sub start () {
|
|
uword uw
|
|
ubyte ub
|
|
float ff
|
|
|
|
uw = funcuw()
|
|
ub = funcub()
|
|
ff = funcff()
|
|
}
|
|
|
|
sub funcuw() -> uword {
|
|
uword a=1111
|
|
uword b=2222
|
|
return a+b
|
|
}
|
|
|
|
sub funcub() -> ubyte {
|
|
ubyte a=11
|
|
ubyte b=22
|
|
return a+b
|
|
}
|
|
|
|
sub funcff() -> float {
|
|
float a=1111.1
|
|
float b=2222.2
|
|
return a+b
|
|
}
|
|
}
|