In Jal, it's possible to do something like this:
var word the_var = 0x1234
var byte the_array[2] at the_var;
Now you can easily access the bytes of the word the_var
with the_array[0]
(0x34
) and the_array[1]
(0x12
). Can something similar be done with the C18 compiler?
I have an unsigned int the_var
and want to access the separate char
s in that variable using an array.