Skip to content

Si100x - Low Level Functions

Published On:
Sep 15, 2011
Last Updated:
Sep 15, 2011

No Operation (NOP)

A nop is an instruction that does nothing. It it used to stall a cpu for precisely timed operations. It can be created by making a pre-compiler macro that executes the assembly code 0x00 as shown below

// Macro
#define NOP() asm{0x00}
// Pause for two clock cycles
NOP();
NOP();