2021-12-21 18:08:33 +00:00
|
|
|
%import textio
|
2022-01-23 21:34:05 +00:00
|
|
|
%import string
|
2022-01-23 12:42:52 +00:00
|
|
|
%zeropage basicsafe
|
2021-12-15 22:43:14 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2022-01-18 20:21:49 +00:00
|
|
|
sub start() {
|
2022-01-24 00:10:04 +00:00
|
|
|
word ww = calculate(6)
|
2022-01-23 18:02:51 +00:00
|
|
|
txt.print_w(ww)
|
|
|
|
txt.nl()
|
2022-01-24 00:10:04 +00:00
|
|
|
ubyte bb = calculate2(6)
|
|
|
|
txt.print_ub(bb)
|
2022-01-23 18:02:51 +00:00
|
|
|
txt.nl()
|
2022-01-23 01:23:30 +00:00
|
|
|
}
|
2022-01-23 13:23:34 +00:00
|
|
|
|
2022-01-24 00:10:04 +00:00
|
|
|
sub calculate2(ubyte row) -> ubyte {
|
|
|
|
return 8+row
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-01-23 18:02:51 +00:00
|
|
|
sub calculate(ubyte row) -> word {
|
2022-01-24 00:10:04 +00:00
|
|
|
return 8+row
|
2022-01-23 18:02:51 +00:00
|
|
|
}
|
2022-01-23 01:42:26 +00:00
|
|
|
}
|