prog8/examples/test.p8
2021-04-22 18:26:46 +02:00

24 lines
405 B
Lua

%import textio
%import string
%zeropage dontuse
%import test_stack
main {
sub start() {
uword zz = $4000
txt.print("hello")
txt.print_uwhex(peekw(zz+2), true)
@(zz+2) = lsb($ea31)
@(zz+3) = msb($ea31)
pokew(zz+2, $ea32) ; TODO fix crash
zz = peekw(zz+2) ; TODO fix crash with asm
txt.print_uwhex(zz, true)
}
}