Overview

Table 17. 32-bit Major Opcode Table (Sheet 2 of 3)

Opcode

Mnemonic

Format

Summary

 

 

 

 

010111

ST

RR

Mem32 [align32( RB + (σ(K) × 4))] ← RA

011000

STS8s

i10

bnMem32 [align32(%sp + IMM10)] ← bn%r0

 

 

 

where n = IMM10[1..0]

 

 

 

 

011001

STS16s

i9

hnMem32 [align32( %sp + IMM9 × 2)] ← hn%r0

 

 

 

where n = IMM9[0]

 

 

 

 

011010

EXT16d

RR

RA ← (0×00.00 : hnRA) where n = RB[1]

011011

MOVHI

Ri5

h1RA ← (K : IMM5), h0RA unaffected

011100

USR0

RR

Reserved for future use

 

 

 

 

011101000

EXT8s

Ri1u

RA ← (0×00.00.00 : bnRA) where n = IMM2u

011101001

EXT16s

Ri1u

RA ← (0×00.00 : hnRA) where n = IMM1u

011101010

 

 

 

 

 

 

 

011101011

 

 

 

 

 

 

 

011101100

ST8s

Ri1u

bnMem32 [align32(RA + (σ(K) × 4))] ← bn%r0

 

 

 

where n = IMM2u

 

 

 

 

011101101

ST16s

Ri1u

hnMem32 [align32(RA + (σ(K) × 4))] ← hn%r0

 

 

 

where n = IMM1u

 

 

 

 

01111000

SAVE

i8v

CWP ← CWP – 1; %sp ← %fp – (IMM8v × 4)

 

 

 

If (old-CWP == LO_LIMIT) {TRAP #1}

 

 

 

 

0111100100

TRAP

i6v

ISTATUS ← STATUS; IE ← 0; CWP ← CWP – 1;

 

 

 

IPRI ← IMM6v; %r15 ← ((PC + 2) >> 1) ;

 

 

 

PC ← Mem32 [VECBASE + (IMM6v × 4)] × 2

 

 

 

 

01111100000

NOT

Rw

RA ← ~RA

 

 

 

 

01111100001

NEG

Rw

RA ← 0 – RA

01111100010

ABS

Rw

RA ← RA

 

 

 

 

01111100011

SEXT8

Rw

RA ← σ(b0RA)

01111100100

SEXT16

Rw

RA ← σ(h0RA)

01111100101

RLC

Rw

C ← msb (RA); RA ← (RA << 1) : C

 

 

 

Flag affected: C

 

 

 

 

01111100110

RRC

Rw

C ← RA[0]; RA ← C : (RA >> 1)

 

 

 

Flag affected: C

 

 

 

 

01111100111

 

 

 

 

 

 

 

01111101000

SWAP

Rw

RA ← h0RA : h1RA

01111101001

USR1

Rw

Reserved for future use

 

 

 

 

01111101010

USR2

Rw

Reserved for future use

 

 

 

 

01111101011

USR3

Rw

Reserved for future use

 

 

 

 

01111101100

USR4

Rw

Reserved for future use

 

 

 

 

01111101101

RESTORE

w

CWP ← CWP + 1; if (old-CWP == HI_LIMIT) {TRAP #2}

01111101110

TRET

Rw

PC ← (RA × 2); STATUS ← ISTATUS

1

Overview

Altera Corporation

29

Page 41
Image 41
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Bit Major Opcode Table Sheet 2, USR0