DATA TYPES AND MEMORY ADDRESSING MODES
2-7
2
See
Table B-9
in
APPENDIX B
for more on addressing modes. For purposes of this memory
addressing modes description, MEMA format instructions require one word of memory and
MEMB usually require two words and therefore consume twice the bus bandwidth to read.
Otherwise, both formats perform the same functions.
2.3.1
Absolute
Absolute addressing modes allow a memory location to be referenced directly as an offset from
address 0H. At the instruction encoding level, two absolute addressing modes are provided:
absolute offset and absolute displacement, depending on offset size.
•
For the absolute offset addressing mode, the offset is an ordinal number ranging from 0 to 4095.
The absolute offset addressing mode is encoded in the MEMA machine instruction format.
•
For the absolute displacement addressing mode, the offset value ranges from 0 to 2
32
-1. The
absolute displacement addressing mode is encoded in the MEMB format.
Addressing modes and encoding instruction formats are described in
CHAPTER 6,
INSTRUCTION SET REFERENCE
.
At the assembly language level, the two absolute addressing modes use the same syntax. Typically,
development tools allow absolute addresses to be specified through arithmetic expressions
(e.g., x + 44) or symbolic labels. After evaluating an address specified with the absolute addressing
mode, the assembler converts the address into an offset or displacement and selects the appropriate
instruction encoding format and addressing mode.
2.3.2
Register Indirect
Register indirect addressing modes use a register’s 32-bit value as a base for address calculation.
The register value is referred to as the address base (designated “abase” in
Table 2-3
). Depending
on the addressing mode, an optional scaled index and offset can be added to this address base.
Register indirect addressing modes are useful for addressing elements of an array or record
structure. When addressing array elements, the abase value provides the address of the first array
element. An offset (or displacement) selects a particular array element.
In register-indirect-with-index addressing mode, the index is specified using a value contained in a
register. This index value is multiplied by a scale factor. Allowable factors are 1, 2, 4, 8 and 16. The
register-indirect-with-index addressing mode is encoded in the MEMB format.
The two versions of register-indirect-with-offset addressing mode at the instruction encoding level
are register-indirect-with-offset and register-indirect-with-displacement. As with absolute
addressing modes, the mode selected depends on the size of the offset from the base address.
Содержание i960 Jx
Страница 1: ...Release Date December 1997 Order Number 272483 002 i960 Jx Microprocessor Developer s Manual ...
Страница 24: ......
Страница 25: ...1 INTRODUCTION ...
Страница 26: ......
Страница 35: ...2 DATA TYPES AND MEMORY ADDRESSING MODES ...
Страница 36: ......
Страница 46: ......
Страница 47: ...3 PROGRAMMING ENVIRONMENT ...
Страница 48: ......
Страница 73: ...4 CACHE AND ON CHIP DATA RAM ...
Страница 74: ......
Страница 85: ...5 INSTRUCTION SET OVERVIEW ...
Страница 86: ......
Страница 111: ...6 INSTRUCTION SET REFERENCE ...
Страница 112: ......
Страница 195: ...INSTRUCTION SET REFERENCE 6 83 6 Opcode mov 5CCH REG movl 5DCH REG movt 5ECH REG movq 5FCH REG See Also LOAD STORE lda ...
Страница 233: ...7 PROCEDURE CALLS ...
Страница 234: ......
Страница 256: ......
Страница 257: ...8 FAULTS ...
Страница 258: ......
Страница 291: ...9 TRACING AND DEBUGGING ...
Страница 292: ......
Страница 309: ...10 TIMERS ...
Страница 310: ......
Страница 324: ......
Страница 325: ...11 INTERRUPTS ...
Страница 326: ......
Страница 369: ...12 INITIALIZATION AND SYSTEM REQUIREMENTS ...
Страница 370: ......
Страница 412: ......
Страница 413: ...13 MEMORY CONFIGURATION ...
Страница 414: ......
Страница 429: ...14 EXTERNAL BUS ...
Страница 430: ......
Страница 468: ......
Страница 469: ...15 TEST FEATURES ...
Страница 470: ......
Страница 493: ...A CONSIDERATIONS FOR WRITING PORTABLE CODE ...
Страница 494: ......
Страница 502: ......
Страница 503: ...B OPCODES AND EXECUTION TIMES ...
Страница 504: ......
Страница 515: ...C MACHINE LEVEL INSTRUCTION FORMATS ...
Страница 516: ......
Страница 523: ...D REGISTER AND DATA STRUCTURES ...
Страница 524: ......
Страница 550: ......
Страница 551: ...GLOSSARY ...
Страница 552: ......
Страница 561: ...INDEX ...
Страница 562: ......
Страница 578: ......