SPRUIY2 November 2024 F29H850TU , F29H859TU-Q1
In addition to the addressing mode fields, there are #immediate fields that are used within the actual addressing modes, such as "#u10imm" in the "*(Ax+#u10imm)" addressing mode. Most of these #immediate fields (also called constants) are self explanatory (for example, #u10imm is an unsigned 10-bit immediate).
However, there are two negative #immediate fields that are explained in further detail using a table for clarity:
#n13imm Field
The #n13imm field is a 13-bit negative offset #immediate used in the "*(A15-#n13imm)" addressing mode. This addressing mode is one of the available ADDR1 fields (requires 16 bits for encoding) and is of type "Stack Addressing".
A negative 13-bit value is provided using this #immediate, and bits 13 to 31 are padded with 1s to create the 32-bit negative offset constant.
12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Encoded Value | Sign-extended Value |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | -1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 2 | -2 |
... | ||||||||||||||
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 4095 | -4095 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4096 | -4096 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 4097 | -4097 |
... | ||||||||||||||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 8191 | -8191 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8192 | -8192 |
#n8imm Field
The #n8imm field is a 8-bit negative offset #immediate used in the following addressing modes:
These addressing modes are all part of the available ADDR1 fields (all require 16 bits for encoding).
A negative 8-bit value is provided using this #immediate, and bits 8 to 31 are padded with 1s to create the 32-bit negative offset constant.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Encoded Value | Sign-extended Value |
---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | -1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 2 | -2 |
... | |||||||||
1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 127 | -127 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 128 | -128 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 129 | -129 |
... | |||||||||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 255 | -255 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 256 | -256 |