... theo từng bit (có thể địa chỉ hoá theo từng bit) sử dụng lệnh cpl hoạcsetbhoạc setbcpl P1.2 ; complement bit 2 of Port1setb P1.3 ; set bit 3 for Port1 to 1clr P0.0 ; clear bit 0 of Port0Chân ... use Amov P0, A ; write A to P0mov P1, Amov P1, Amov P2, #0AAH ; can use immediate modexlr P1, #0FFH ; read-modify-write (ex-or)mov P0, #0FFH ; configure P0 for inputmov A, P0 ; read from P0•Các ... address of PAmovx @DPTR, A ; write 55H to PAinc DPTR ; now DPTR points to PBmovx @DPTR, A ; write 55H to PBinc DPTR ; now DPTR points to PC@DPTR A it 55H t PCmovx @DPTR, A ; write 55H to PCcpl...