Jump to content

ysj

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ysj

  • Rank
    Newbrie
  1. When I compile my code, I receieve no error, but it changes my assembly code. Please look below to see where the code was changed. I mark it with ??????. ;;;;;;;;char RcTime(void) { _RcTimeend I can make it work by inputting the code "goto $-3", but this causes it to lose one cycle, and I don't want that to happen. I want to get a better accurate rctime value. I hope it will be fixed. PicAntIDE Version : 5.0 compiler: c2c- plus compiler version : 5.0 os system : Window 95
  2. When I compile my code, I receieve no error, but it changes my assembly code. Please look below to see where the code was changed. I mark it with ?????. ;;;;;;;;char RcTime(void) { _RcTimeend I can make it work by inputting the code "goto $-3", but this causes it to lose one cycle, and I don't want that to happen. I want to get a better accurate rctime value. I hope it will be fixed. PicAntIDE Version : 5.0 compiler: c2c- plus compiler version : 5.0 os system : Window 95
  3. I have Win95 operating system and v4.61 compiler. asm { btfsc _gpio, 3 goto $+6 btfss _gpio, 3 goto $-1 bsf _SwMode, SW_ON_OFF movf _SwMode, W return bcf _SwMode, SW_ON_OFF movf _SwMode, W return } After compiling the codes above, I received these errors: "Unexpected identifier 'btfsc' , Missing ';' after 'goto' , Unexpected identifier 'btfss', Missing ';' after 'goto', Unexpected identifier 'bsf',Unexpected identifier 'bcf'Unexpected identifier '_SwMode', Unexpected identifier 'movf'" errors. the codes below are similar as the ones above but they have no errors. asm btfsc _gpio, 3 asm goto $+6 asm btfss _gpio, 3 asm goto $-1 asm bsf _SwMode, SW_ON_OFF asm movf _SwMode, W asm return asm bcf _SwMode, SW_ON_OFF asm movf _SwMode, W asm return Also PicAntIDE 4.61 has a problem. After running PicAntIDE, I compiled and built the source code for my program. When I open an asm or lst file, there's no problem, but if I add more codes and rebuild it, and afterwards open either an asm or lst file, there is no change to the file(asm & lst). The only way it will change is if I use notepad or if I exit and rerun PicAntIDE. Could you fix for these two problems?
×
×
  • Create New...