2023-11-05 23:08:07 +00:00
|
|
|
%import textio
|
2023-11-09 21:32:20 +00:00
|
|
|
%zeropage basicsafe
|
2023-10-14 05:18:37 +00:00
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
2023-11-06 20:55:58 +00:00
|
|
|
sub start() {
|
2023-11-09 21:32:20 +00:00
|
|
|
uword address = 1000
|
|
|
|
|
|
|
|
poke(1000, 99)
|
|
|
|
ubyte prev = pokemon(1000,123)
|
|
|
|
txt.print_ub(prev)
|
|
|
|
txt.nl()
|
|
|
|
prev = pokemon(1000,0)
|
|
|
|
txt.print_ub(prev)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(@(1000))
|
|
|
|
txt.nl()
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
poke(address+3, 99)
|
|
|
|
prev = pokemon(address+3,123)
|
|
|
|
txt.print_ub(prev)
|
|
|
|
txt.nl()
|
|
|
|
prev = pokemon(address+3,0)
|
|
|
|
txt.print_ub(prev)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(@(address+3))
|
2023-11-06 20:55:58 +00:00
|
|
|
txt.nl()
|
2023-10-04 20:32:13 +00:00
|
|
|
}
|
2023-10-03 20:54:28 +00:00
|
|
|
}
|