cancel
Showing results for 
Search instead for 
Did you mean: 

Externally defined symbols in Bit instructions

john5
Associate
Posted on April 16, 2003 at 14:09

Externally defined symbols in Bit instructions

2 REPLIES 2
john5
Associate
Posted on April 16, 2003 at 08:54

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

johno
sjo
Associate II
Posted on April 16, 2003 at 14:09

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