pub type IOffset<const N: u32> = Offset<i16, N>;Expand description
A value representing a signed offset or a signed immediate value.
N indicates the maximum bit size of this offset/immediate value.
§Examples
IOffset<5> is used to represent ADD/AND’s imm5 operand:
AND R0, R0, #0
~~
ADD R1, R1, #1
~~They are also used for numeric register or PC offset values:
BR x-F
~~~
JSR #99
~~~
LD R0, #10
~~~
LDR R0, R0, #9
~~Aliased Type§
struct IOffset<const N: u32>(/* private fields */);