21.08.2013 Views

AVR Instruction Set Nomenclature: Status Register (SREG ...

AVR Instruction Set Nomenclature: Status Register (SREG ...

AVR Instruction Set Nomenclature: Status Register (SREG ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IJMP - Indirect Jump<br />

<strong>Instruction</strong> <strong>Set</strong><br />

Description:<br />

Indirect jump to the address pointed to by the Z (16 bits) pointer register in the register file. The Z pointer register is 16 bits<br />

wide and allows jump within the lowest 64K words (128K bytes) section of program memory.<br />

Operation:<br />

(i) PC ← Z(15:0) Devices with 16 bits PC, 128K bytes program memory maximum.<br />

(ii) PC(15:0) ← Z(15:0) Devices with 22 bits PC, 8M bytes program memory maximum.<br />

PC(21:16) ← 0<br />

Syntax: Operands: Program Counter: Stack:<br />

(i),(ii) IJMP None See Operation Not Affected<br />

16-bit Opcode:<br />

<strong>Status</strong> <strong>Register</strong> (<strong>SREG</strong>) and Boolean Formula:<br />

Example:<br />

1001 0100 0000 1001<br />

I T H S V N Z C<br />

- - - - - - - -<br />

Words: 1 (2 bytes)<br />

Cycles: 2<br />

mov r30,r0 ; <strong>Set</strong> offset to jump table<br />

ijmp ; Jump to routine pointed to by r31:r30<br />

67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!