Jump to content

DonC

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About DonC

  • Rank
    Newbrie
  1. DonC

    Compiler error

    I have a function defined as void soft_putch(char txPort, char txPin, char c) { // irrelevent code removed clear_bit(txPort, txPin); } and it is called from my main loop as soft_putch(portb,1,'a'); The compiler generates the proper code to call this function, and passes the parameters correctly as param00_soft_putch 0000004D param01_soft_putch 0000004E param02_soft_putch 0000004F But inside the function where clear_bit is called, the second parameter is not passed correctly, the compiler generated code is 06079 ;;;;;;;; clear_bit(txPort, txPin); Error[113] : Symbol not previously defined (txPin) 04BD 104D 06080 bcf param00_soft_putch, txPin I have to manually remove the symbol txPin and replace it with param02_soft_putch in in order for the code to assemble correctly. As in.. 04BD 104D 06080 bcf param00_soft_putch, param01_soft_putch Thanks
×