Everything

set1, clr1, not1, tst1


-

The set1, clr1, not1, and tst1 instructions of the device should be specified in the following formats.

-

set1 bit#3, disp16 [reg1]

-

clr1 bit#3, disp16 [reg1]

-

not1 bit#3, disp16 [reg1]

-

tst1 bit#3, disp16 [reg1]

-

set1 reg2, [reg1]

-

clr1 reg2, [reg1]

-

not1 reg2, [reg1]

-

tst1 reg2, [reg1]

 

-

Among the above formats, the format of "op bit#3, disp16 [reg1]" will be interpreted by asrh as follows:

-

If any of the following is specified as disp16, the assembler executes instruction expansion to generate multiple machine instructions.

-

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

Format

Result of Assembly

set1    bit#3, disp[reg1]
movhi   HIGHW1(disp), reg1, r1
set1    bit#3, LOWW(disp)[r1]

-

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

set1    bit#3, disp[reg1]
movhi   HIGHW1(disp), reg1, r1
set1    bit#3, LOWW(disp)[r1]

-

If disp is omitted, the assembler assumes 0.

-

If a relative expression with #label, or a relative expression with #label and with LOWW applied is specified as disp, [reg1] can be omitted. In that case, it is assumed that [r0] was specified.

-

If a relative expression with $label, or a relative expression with $label and with LOWW applied is specified as disp, [reg1] can be omitted. In that case, it is assumed that [gp] was specified.

-

If a relative expression with %label, or a relative expression with %label and with LOWW applied is specified as disp, [reg1] can be omitted. In that case, it is assumed that [ep] was specified.