mirror of
https://github.com/irmen/prog8.git
synced 2025-02-19 11:31:07 +00:00
28 lines
408 B
Lua
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
|
|
}
|
|
|
|
|
|
}
|