Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About twentysixdb

  • Rank
  1. Hi Again: My original post has not been screened by the moderator; however, I have the answer. btfss _status, Z Is the ONLY permutation that will compile. The space after the ',' and a capital 'Z' are req'd. Cheers!
  2. Hi All: I am writing a simple assembly time delay routine and the only line that will NOT compile is the conditional. If have tried every permutation to try and get it to go, but no luck...compiler output follows code snipet. void ms_delay( void ) { asm { movlw 0xE6 ; 230 decimal _dly1: nop nop nop nop nop nop nop nop nop addlw 0xFF BTFSS STATUS,Z goto _dly1 return } } The compiler output is: Building... BoostC Optimizing C Compiler Version 6.96 (for PIC16 architecture) failure C:\PIC Projects\16F690\BoostC\Phone\Time Delay\Time Delay.c(202): error: error in built-in assembly C:\PIC Projects\16F690\BoostC\Phone\Time Delay\Time Delay.c(203): error: jump to undefined label "C:\Program Files\SourceBoost\boostc_pic16.exe" "Time Delay.c" -t PIC16F690 Exit code was 1. Removing target: Time Delay.obj Done When I comment the conditional line it compiles! Any thoughts? Thanks, Craig
  • Create New...