Indexed Addressing With Index and Pointer Registers
5-10
ADSP-BF535 Blackfin Processor Hardware Reference
For example:
B [ P1++ ] = R0
;
stores the 8-bit value from the
R0
register in the address pointed to by the
P1
register, then increments the
P1
register.
Auto-Increment and Auto-Decrement Addressing
Auto-increment addressing updates the Pointer and Index registers after
the access. The amount of increment depends on the word size. An access
of 32-bit words results in an update of the pointer by 4. A 16-bit word
access updates the pointer by 2, and an access of an 8-bit word updates the
pointer by 1. Both 8-bit and 16-bit read operations may specify either to
sign-extend or zero-extend the contents into the destination register.
Pointer registers may be used for 8-, 16-, and 32-bit accesses while Index
registers may be used only for 16- and 32-bit accesses.
For example:
R0 = W [ P1++ ] (Z)
;
loads a 16-bit word into a 32-bit destination register from an address
pointed to by the
P1
Pointer register. The Pointer is then incremented by
2 and the word is zero-extended to fill the 32-bit destination register.
Auto-decrement works the same way by decrementing the address after
the access.
For example:
R0 = [ I2-- ] ;
loads a 32-bit value into the destination register and decrements the Index
register by 4.
Содержание ADSP-BF535 Blackfin
Страница 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Страница 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 908: ...SDRAM Controller External Bus Interface Unit B 36 ADSP BF535 Blackfin Processor Hardware Reference...