2003-04-16 05:09 AM
Externally defined symbols in Bit instructions
2003-04-15 11:54 PM
Hi All,
I am trying to use an externally defined public symbol SerDet in several modules which incorporate the instruction btjt PADR,#SerDet,labelX When I try to assemble the modules under STDV7 assembler I get error message saying ''unknown addressing mode'' and assembly fails This only appears to happen with the BIT class of instructions Can anyone help - its driving me crazy Thanks in advance johno2003-04-16 05:09 AM
What you are trying to do is invalid.
The position part the the btjt/btjf has to be a constant 0-7. you could use a define,eg. #define BIT 1 btjt PADR, #BIT, * ; wait for falling edge on PA1 Regards Spen