Renesas R8C/Tiny Series Software Manual page 285

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

Advertisement

Q
How does the instruction code become if I use a bit instruction in absolute addressing ?
A
An explanation is given here by taking BSET bit,base:16 as an example.
This instruction is a 4-byte instruction. The 2 higher-order bytes of the instruction code indicate
operation code, and the 2 lower-order bytes make up 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 turn to A
8 + 2 = 52H.
In the case of BSET 18,8H (setting the 18th bit from bit 0 of address 0008
bytes turn to 8
8 + 18 = 52H, which is equivalent to BSET 2,AH.
The maximum value of base:16
maximum bit you can specify when using the bit instruction in absolute addressing.
8 + bit
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