AND IER,#16bit
6-46
AND IER,#16bit Bitwise AND to Disable Specified CPU Interrupts
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
AND IER,#16bit 0111 0110 0010 0110
CCCC CCCC CCCC CCCC
X − 2
Operands IER Interrupt enable register
#16bit
16-bit immediate constant value (0x0000 to 0xFFFF)
Description Disable specific interrupts by performing a bitwise AND operation with the IER
register and the 16-bit immediate value. The result is stored in the IER
register:
IER = IER AND #16bit;
Flags and
Modes
None
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Disable INT1 and INT6 only. Do not modify state of other
; interrupts enable:
AND IER,#0xFFBE ; Disable INT1 and INT6