prog8/examples/test.p8

17 lines
337 B
Plaintext
Raw Normal View History

%import floats
2023-05-16 21:10:33 +00:00
%import textio
%zeropage basicsafe
main {
2023-05-07 21:49:02 +00:00
2023-05-07 23:03:54 +00:00
sub start() {
2023-05-21 14:08:42 +00:00
ubyte[] array = [ $00, $11, $22, $33, $44, $55, $66, $77, $88, $99, $aa, $bb]
2023-05-14 14:48:48 +00:00
2023-05-21 14:08:42 +00:00
ubyte x = 2
ubyte y = 3
txt.print_uwhex(mkword(array[9], array[8]), true)
txt.print_uwhex(mkword(array[x*y+y], array[y*x+x]), true)
2023-03-18 23:24:05 +00:00
}
}