mirror of
https://github.com/irmen/prog8.git
synced 2024-10-08 06:59:21 +00:00
28 lines
381 B
Lua
28 lines
381 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 {
|
|
return 33
|
|
}
|
|
|
|
sub add_bonus(ubyte qq) {
|
|
qq++
|
|
}
|
|
|
|
|
|
}
|