Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On PIC microcontrollers, it's common to use a "goto $+1" instruction as a two-cycle NOP to save an instruction word (every word counts when you only have 256 words of ROM and 32 bytes of RAM). It just branches to the next instruction.

See http://www.piclist.com/techref/piclist/codegen/delay.htm



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: