IPR-NIOS Altera, IPR-NIOS Datasheet - Page 252
IPR-NIOS
Manufacturer Part Number
IPR-NIOS
Description
IP NIOS II MEGACORE RENEW
Manufacturer
Altera
Type
MegaCorer
Datasheet
1.IP-NIOS.pdf
(294 pages)
Specifications of IPR-NIOS
License
Renewal License
Lead Free Status / RoHS Status
Not applicable / Not applicable
- Current page: 252 of 294
- Download datasheet (3Mb)
8–66
movhi
Nios II Processor Reference Handbook
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Pseudo-instruction:
rB ← (IMMED : 0x0000)
movhi rB, IMMED
movhi r6, 0x8000
Writes the immediate value IMMED into the high halfword of rB, and clears the lower halfword
of rB to 0x0000.
The maximum allowed value of IMMED is 65535. The minimum allowed value is 0. To load a
32-bit constant into a register, first load the upper 16 bits using a movhi pseudo-instruction.
The %hi() macro can be used to extract the upper 16 bits of a constant or a label. Then, load
the lower 16 bits with an ori instruction. The %lo() macro can be used to extract the lower
16 bits of a constant or label as shown below.
movhi rB, %hi(value)
ori rB, rB, %lo(value)
An alternative method to load a 32-bit constant into a register uses the %hiadj() macro and the
addi instruction as shown below.
movhi rB, %hiadj(value)
addi rB, rB, %lo(value)
movhi is implemented as orhi rB, r0, IMMED.
move immediate into high halfword
Chapter 8: Instruction Set Reference
December 2010 Altera Corporation
Instruction Set Reference
Related parts for IPR-NIOS
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
CYCLONE II STARTER KIT EP2C20N
Manufacturer:
Altera
Datasheet:
Part Number:
Description:
CPLD, EP610 Family, ECMOS Process, 300 Gates, 16 Macro Cells, 16 Reg., 16 User I/Os, 5V Supply, 35 Speed Grade, 24DIP
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
CPLD, EP610 Family, ECMOS Process, 300 Gates, 16 Macro Cells, 16 Reg., 16 User I/Os, 5V Supply, 15 Speed Grade, 24DIP
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
CPLD, EP610 Family, ECMOS Process, 300 Gates, 16 Macro Cells, 16 Reg., 16 User I/Os, 5V Supply, 30 Speed Grade, 24DIP
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
High-performance, low-power erasable programmable logic devices with 8 macrocells, 10ns
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
High-performance, low-power erasable programmable logic devices with 8 macrocells, 7ns
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
Classic EPLD
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
High-performance, low-power erasable programmable logic devices with 8 macrocells, 10ns
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
Altera Corporation
Datasheet:
Part Number:
Description:
CPLD, EP610 Family, ECMOS Process, 300 Gates, 16 Macro Cells, 16 Reg., 16 User I/Os, 5V Supply, 25 Speed Grade, 24DIP
Manufacturer:
Altera Corporation
Datasheet: