I am just getting started on this again tonight...

I the example from Skimask above, the variable CMD is I assume an array of 16 bits? so I should declare..

Code:
CMD  VAR  bit[16]
Am I correct?


My next question is how do I get my word variable into series of 16 bits?

Code:
dout = $D0F7

for n = 16 to 0 step -1
  CMD[n] = %dout.15
  dout << 1
next n


Keep in mind I am almost certain that the above example will not work... It's just to show that I am trying, not just asking everyone else to make my project for me...