Renesas R8C/Tiny Series Software Manual page 286

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Q
What happens to the instruction code if I use a bit instruction in absolute addressing ?
A
This explanation takes BSET bit, base:16 as an example.
This instruction is a 4-byte instruction. The 2 higher-order bytes of the instruction code indicate the
operation code, and the 2 lower-order bytes make up the addressing mode to expresse bit,base:16.
The relation between the 2 lower-order bytes and bit,base:16 is as follows:
2 lower-order bytes = base:16
For example, in the case of BSET 2,0AH (setting bit 2 of address 000A
bytes become A
In the case of BSET 18,8H (setting the 18th bit from bit 0 of address 0008
bytes become 8
The maximum value of base:16
maximum bit you can specify when using a bit instruction in absolute addressing.
8 + bit
8 + 2 = 52H.
8 + 18 = 52H, which is equivalent to BSET 2,AH.
8 + bit, FFFFH, indicates bit 7 of address 1FFF
Q&A-5
to 1), the 2 lower-order
16
to 1), the 2 lower-order
16
. This is the
16
CPU

Advertisement

Table of Contents
loading

Table of Contents