Specifications

Table Of Contents
8–12 Altera Corporation
Nios II Processor Reference Handbook October 2007
andhi
andhi
bitwise logical and immediate into high halfword
Operation:
rB
rA & (IMM16 : 0x0000)
Assembler Syntax:
andhi rB, rA, IMM16
Example:
andhi r6, r7, 100
Description: Calculates the bitwise logical AND of rA and (IMM16 : 0x0000) and stores the result in
rB.
Instruction Type: I
Instruction Fields: A = Register index of operand rA
B = Register index of operand rB
IMM16 = 16-bit unsigned immediate value
313029282726252423222120191817161514131211109876543210
A B IMM16 0x2c