SX Embedded Controller Instruction

IREAD

Description: Read instruction at M : W into M : W
Operation: M : W = PROGRAM[M<<8+W]
Flags affected: none
Registers affected: M, W
Sources referenced: M, W
Cycles: 4 verified
Opcode:
Details: SX Users Manual page # 86
Microchip PIC syntax:
Notes:

IREAD - Used to read 12-bit instruction memory. The contents of address (MODE:W) is copied into MODE:W. In other words:

After the IREAD instruction is executed, the high four bits of the addressed location are in MODE and the low eight bits are in W.

by Loren Blaney via Richard Ottosen

Also:

Contrary to some pages of the users guide and the datasheet, IREAD has been confirmed (by Guenther Daubach) to take 4 cycles in turbo mode.

Comments: