Mplab X Compiler -

__asm__ volatile ("bsf %0, %1" : "=r"(PORT) : "r"(0)); The compiler will allocate the register for you. It won't clobber the WREG. It's civilised.

Instead of:

bsf PORTA, 0 Use:

mplab x compiler

Get In Touch

Anjuman-Islam's Kalsekar Technical Campus

  • Add: Sector 16, Plot # 2&3, Near Thana Naka, Khanda Gaon, New Panvel, Navi Mumbai, Maharashtra, India
  • Pincode: 410206
  • Tel: 022 27481247/48
  • Email: librarian@aiktc.ac.in
  • Fax: 022 27481249

Members Say About Us

Top
We use cookies to improve our website. By continuing to use this website, you are giving consent to cookies being used. More details…