Hi,
I have an array of bits (MB_Inputs) to which I want to shift in data from an external device. After trying a couple of different things without luck I came to think of Darrels writeup on the EXT modifier and thought I'd give that a try:
Code:
DataIn VAR WORD EXT
@DataIn = _MB_Inputs
and then later on
Code:
ShiftIn PortB.0, PortB.1, 0, [DataIn \16]
This actually seems to work but when compiling I get an assmebler error 108, Illegal character (,) on line 1532 in the ASM file, that particular line is:
Code:
DataIn = _MB_Inputs
Questions:
1) Any idea why I get the error? I hope it's not the underscore "inside" my variable name...
2) Since it, despite the error message, seems to work on the target should I just disregard the error? (Hard to do but I guess I can be convinced)
3) Any other way of shifting data directly into an array of bits using ShiftIn?

I know this may look weird as I could just as well have used a WORD to begin with but it is what it is.

Thanks!
/Henrik.