LOOKUP expressions for PBASIC is not available in LOOKUP for SX/B ?
I have a working PBASIC Lookup command:
LOOKUP char,[noparse][[/noparse]Char_B,Char_S,Char_2,Char_Space],eeAddr1
and the Char_B (and other expressions(?)) references a DATA statement
:
:
Char_B···DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0
Is it possible to convert this PBASIC LOOKUP statement into a SX/B LOOKUP statement (or will an elaborate routine need to be written)?
SX/B statement....
LOOKUP char,Char_B,Char_S,Char_2,Char_Space,eeAddr2
:
:
Char_B:····
··········· DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0
I get an error....INVALID PARAMETER "Char_B"
Bean? Somebody?
Thanks.
LOOKUP char,[noparse][[/noparse]Char_B,Char_S,Char_2,Char_Space],eeAddr1
and the Char_B (and other expressions(?)) references a DATA statement
:
:
Char_B···DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0
Is it possible to convert this PBASIC LOOKUP statement into a SX/B LOOKUP statement (or will an elaborate routine need to be written)?
SX/B statement....
LOOKUP char,Char_B,Char_S,Char_2,Char_Space,eeAddr2
:
:
Char_B:····
··········· DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0
I get an error....INVALID PARAMETER "Char_B"
Bean? Somebody?
Thanks.

Comments
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 char VAR Byte eeAddr2 VAR Word temp VAR Byte bitMap VAR Byte PROGRAM Start Start: char = 1 IF char = 0 THEN eeAddr2 = Char_B ELSEIF char = 1 THEN eeAddr2 = Char_S ELSEIF char = 2 THEN eeAddr2 = Char_2 ELSEIF char = 3 THEN eeAddr2 = Char_Space ENDIF FOR temp = 0 TO 7 READINC eeAddr2, bitMap NEXT END Char_B: DATA 0 Char_S: DATA 1 Char_2: DATA 2 Char_Space: DATA 3Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"
Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
Thanks again.
Tim