Jump to content

ian1scott

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ian1scott

  • Rank
    Newbrie
  1. Any chance of supporting the newer lightweight, flash-based PIC chips like the 10F20x series and the 12F508 series? (My apologies if these are already supported and I missed it!!!) TIA Ian >
  2. I have not been able to find a workaround to this apparent bug. (seems to be in 5.2.0 and 5.2.2) Please tell me I am doing something very silly!??!?!? The following code: >--snip if (c==8){ LCD_send_byte(0, 0x10); // backspace } else if (c==10){ >--snip compiles as: >---snip ;;;;;;;;{ ;;;;;;;; if (c==8){ btfss param00_LCD_putc, D'3' goto label_0020 ;;;;;;;; LCD_send_byte(0, 0x10); // backspace clrf param00_LCD_send_byte movlw D'16' movwf param01_LCD_send_byte call _LCD_send_byte ;;;;;;;; ;;;;;;;; } else if (c==10){ goto label_0021 label_0020 movlw D'10' subwf param00_LCD_putc, W btfss STATUS, Z goto label_0022 >---snip Not sure if you can see what is going on, but it correctly does a movlw and a subwf when I am testing for (c==10), but when I do a test for (c==8) all it does is check for bit3 being set (btfss param00_LCD_putc, D'3') - it should be treating it the same as the c==10 condition. I originally tried to do a switch..case statement, but it generated the same code. Does anybody know a workaround for this? ??? Ian
×
×
  • Create New...