Compaq ECQD2KCTE manual Jumps, Jmp

Models: ECQD2KCTE

1 371
Download 371 pages 20.35 Kb
Page 78
Image 78

4.3.3 Jumps

Format:

mnemonic

Ra.wq,(Rb.ab),hint

!Memory format

Operation:

{update PC}

va Rbv AND {NOT 3} Ra PC

PC va

Exceptions:

 

None

 

Instruction mnemonics:

 

JMP

Jump

JSR

Jump to Subroutine

RET

Return from Subroutine

JSR_COROUTINE

Jump to Subroutine Return

Qualifiers:

 

None

 

Description:

The PC of the instruction following the Jump instruction (the updated PC) is written to register Ra and then the PC is loaded with the target virtual address.

The new PC is supplied from register Rb. The low two bits of Rb are ignored. Ra and Rb may specify the same register; the target calculation using the old value is done before the new value is assigned.

All Jump instructions do identical operations. They only differ in hints to possible branch-pre- diction logic. The displacement field of the instruction is used to pass this information. The four different "opcodes" set different bit patterns in disp<15:14>, and the hint operand sets disp<13:0>.

These bits are intended to be used as shown in Table 4–4.

4–22Alpha Architecture Handbook

Page 78
Image 78
Compaq ECQD2KCTE manual Jumps, Jmp