Skip to main content
Visitor II
April 16, 2003
Question

Externally defined symbols in Bit instructions

  • April 16, 2003
  • 2 replies
  • 758 views
Posted on April 16, 2003 at 14:09

Externally defined symbols in Bit instructions

    This topic has been closed for replies.

    2 replies

    john5Author
    Visitor II
    April 16, 2003
    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
    Visitor II
    April 16, 2003
    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