The following examples cover different addressing modes:
| LD D1, #opr8i(0x123) | The immediate value is truncated to 8-bit number. |
| ADC D7 , #sxe4i(11) | The immediate value is forced to IMMe4 postbyte addressing mode. Another alternative, more size consuming is ADC D32, #imm4. |
| ADC D0 , (opru4(7), X) | Ensures that the shortest encoding is used (another alternative is ADC D0, (oprs9, xysp)). |
| ADC D0 , opru14(var1) | Force to 14-bit address. Useful when compiling with medium or large memory model. |
| ADC D0 , opru18(var2) | Force to 18-bit address. Useful when compiling with other memory model than medium. |
| ADC D0 , opr24(var3) | Force to 24-bit address. Useful for const var, when the application is compiled with small memory model. |
| BEQ opr7i(label0) | The user manually computed the value for label0 and forced the compiler to use opr7i. |
MODS.BB D4 , (opru4(14), X) ,(opru24(20013), D0)
MOV.W #opr16i(1361) , (oprs9(86), Y)