prog8/examples/test.p8
2022-03-02 21:29:09 +01:00

28 lines
408 B
Lua

%import textio
%import floats
%import test_stack
%zeropage basicsafe
main {
sub start() {
get_player(1)
|> determine_score()
|> add_bonus()
|> txt.print_uw()
}
sub get_player(ubyte xx) -> ubyte {
return xx+33
}
sub determine_score(ubyte zz) -> ubyte {
return zz+22
}
sub add_bonus(ubyte qq) -> ubyte {
return qq+1
}
}