EE 308 Setting and Clearing Bits using Assembly and C
ldaa #$55 PORTA = 0x55; staa PORTA
bset PORTA,#$10 PORTA = PORTA | 0x10;
bclr PORTA,#$20 PORTA = PORTA & 0xDF; PORTA = PORTA & ~0x20;