Andhi; Andi - Intel NIOS II Owner Reference Manual

Table of Contents

Advertisement

8. Instruction Set Reference
NII-PRG | 2018.04.18
31
30
29
A
15
14
13
0x0e

8.5.4. andhi

Instruction
Operation
Assembler Syntax
Example
Description
Exceptions
Instruction Type
Instruction Fields
31
30
29
A
15
14
13

8.5.5. andi

Instruction
Operation
Assembler Syntax
Example
Description
Exceptions
Instruction Type
Instruction Fields
28
27
26
25
12
11
10
9
28
27
26
25
12
11
10
9
IMM16
Bit Fields
24
23
22
21
B
8
7
6
5
0
bitwise logical and immediate into high halfword
rB
rA & (IMM16 : 0x0000)
andhi rB, rA, IMM16
andhi r6, r7, 100
Calculates the bitwise logical AND of rA and (IMM16 :
0x0000) and stores the result in rB.
None
I
= Register index of operand rA
A
= Register index of operand rB
B
= 16-bit unsigned immediate value
IMM16
Bit Fields
24
23
22
21
B
8
7
6
5
bitwise logical and immediate
rB
rA & (0x0000 : IMM16)
andi rB, rA, IMM16
andi r6, r7, 100
Calculates the bitwise logical AND of rA and (0x0000 :
IMM16) and stores the result in rB.
None
I
= Register index of operand rA
A
= Register index of operand rB
B
= 16-bit unsigned immediate value
IMM16
20
19
18
17
C
4
3
2
1
0x3A
20
19
18
17
IMM16
4
3
2
1
0x2c
Nios II Processor Reference Guide
16
0x0e
0
16
0
177

Advertisement

Table of Contents
loading

Table of Contents