// MicroBoard program // Use writeb() to output an unformatted byte main() { int i, cmp; i = 0x01; // bit pattern 00000001 loop { cmp = ~i; // complement of i writeb(0, cmp, 1000); i <<= 1; // NB, the shifted position is filled with 0 if(i == 0x100) i = 0x01; // repeat } }