logoalt Hacker News

kazinatortoday at 2:03 AM1 replyview on HN

> Say you want to store a byte to a register plus offset. What range of offsets can a [compressed] 16-bit instruction encode? Zero through three.

If a compressed instruction could load or store a word to a word-scaled offset 0-3, relative to a register base address, that would be quite useful. It could be used for accesses to all structures four words or smaller.


Replies

dmitrygrtoday at 2:29 AM

In thumb, it can encode 0..31

show 1 reply