I just realised what I did...
dout = dout << 1
lcdout $fe,14,bin dout.15
I was displaying the dout bit after it had shifted... Stupid me.. I swapped those 2 lines, and I know I am giving the right string of bits to the array...
I'm trying to display the array to see if all those bits went in.. Something is not right tho.
Code:
n VAR BYTE
nn VAR BYTE
cmd VAR BYTE[15]
...
lcdout $fe,$C0," "
for n = 15 to 0 step -1
CMD.0[n] = dout.15
lcdout $fe,14,bin dout.15
dout = dout << 1
next n
lcdout $fe,$d4," "
for nn = 0 to 15
lcdout $fe,$14,cmd.0[nn]
next nn
This last bit where I try to display the cmd array just gives me garbage characters.
Bookmarks