What is the difference between short addressing mode and long addressing mode

After going through several data sheets of the processor architecture, I saw the terms, short addressing mode and long addressing mode

Can anyone give me a general idea of ​​the terms (no need to be a specific processor!)

/ renjith_g

+3
source share
1 answer
  • In the short addressing mode, a relative address is used, calculated as (some register + some smallish constant), which usually allows small / small / fast instructions, but can only access a small range of memory;
  • , // , .

ARM-, , , ( ) .

ARM ( Thumb) 32 , , ARM 32- .

, , 32 - .

, , :

MOV Rn, #AABBCCDD

- (MOV) (Rn), 32 , 32- .

, - , :

1. PC-relative

, :

ADR Rn, .label
...
.label

:

ADD Rn, PC, (.label - here)

, .label 4k , / ( ), . .

2.

ors:

MOV Rn, #AA000000
ADD Rn, Rn, #00BB0000
ADD Rn, Rn, #0000CC00
ADD Rn, Rn, #000000DD

( , ).

3.

, , :

ADR Rn, .store
LDR Rn, [Rn]

.store
EQU #AABBCCDD

(, x86), , (, ) (, ,) 32- .

+3

Source: https://habr.com/ru/post/1754248/


All Articles