Everything

not, satsubr, sub, subr, tst


-

The not, satsubr, sub, subr, and tst instructions of the device should be specified in the following formats.

-

NOT reg1, reg2

-

SATSUBR reg1, reg2

-

SUB reg1, reg2

-

SUBR reg1, reg2

-

TST reg1, rg2

 

-

In asrh, the following formats can also be used in addition to the above.

-

not imm, reg2

-

satsubr imm, reg2

-

sub imm, reg2

-

subr imm, reg2

-

tst imm, reg2

 

-

If the following is specified for imm in syntax "not imm, reg2", "satsubr imm, reg2", "sub imm, reg2", and "subr imm, reg2", "tst imm, reg2", the assembler executes instruction expansion to generate one or more machine instructions.

(a)

0

Format

Result of Assembly

not     0, reg
not     r0, reg

(b)

Absolute expression having a value of other than 0 within the range of -16 to +15

Format

Result of Assembly

not     imm5, reg
mov     imm5, r1
not     r1, reg

(c)

Absolute expression exceeding the range of -16 to +15, but within the range of -32,768 to +32,767

Format

Result of Assembly

not     imm16, reg
movea   imm16, r0, r1
not     r1, reg

(d)

Absolute expression having a value exceeding the range of -32,768 to +32,767

If all the lower 16 bits of the value of imm are 0

Format

Result of Assembly

not     imm, reg
movhi   HIGHW(imm), r0, r1
not     r1, reg

 

Else

Format

Result of Assembly

not     imm, reg
mov     imm, r1
not     r1, reg

(e)

Relative expression having !label or %label, or that having $label for a label having a definition in the sdata/sbss-attribute section

Format

Result of Assembly

not     !label, reg
movea   !label, r0, r1
not     r1, reg
not     %label, reg
movea   %label, r0, r1
not     r1, reg
not     $label, reg
movea   $label, r0, r1
not     r1, reg

(f)

Relative expression having #label or label, or that having $label for a label having no definition in the sdata/sbss-attribute section

Format

Result of Assembly

not     #label, reg
mov     #label, r1
not     r1, reg
not     label, reg
mov     label, r1
not     r1, reg
not     $label, reg
mov     $label, r1
not     r1, reg