IM 2

Operation

Set Interrupt Mode 2

Mnemonic

IM

Operands

2

b7b6b5b4b3b2b1b0
1 1 1 0 1 1 0 1$ED
0 1 0 1 1 1 1 0$5E

Description

The IM 2 instruction sets the vectored Interrupt Mode 2. This mode allows an indirect call to any memory location by an 8-bit vector supplied from the peripheral device. This vector then becomes the least-significant eight bits of the indirect pointer, while the I Register in the CPU provides the most-significant eight bits. This address points to an address in a vector table that is the starting address for the interrupt service routine.

Condition Bits Affected

None.