prog8/examples/test.p8

28 lines
408 B
Plaintext
Raw Normal View History

%import textio
2022-02-27 16:27:02 +01:00
%import floats
%import test_stack
%zeropage basicsafe
2021-10-30 15:15:11 +02:00
main {
sub start() {
2022-02-27 16:27:02 +01:00
get_player(1)
|> determine_score()
|> add_bonus()
|> txt.print_uw()
}
sub get_player(ubyte xx) -> ubyte {
return xx+33
}
2022-02-25 23:48:39 +01:00
2022-03-02 21:29:09 +01:00
sub determine_score(ubyte zz) -> ubyte {
return zz+22
2022-02-27 16:27:02 +01:00
}
2022-02-25 19:16:37 +01:00
2022-03-02 21:29:09 +01:00
sub add_bonus(ubyte qq) -> ubyte {
return qq+1
}
2022-02-27 16:27:02 +01:00
2022-02-18 00:40:31 +01:00
}