12
Chapter 1 Overview
1.7 Data Types
1.7.3 Bits
●
Register bits
Figure 1.7.3 shows register bit specification.
Register bits can be specified by register direct (bit, Rn or bit, An). Use bit, Rn to specify a bit in data
register (Rn); use bit, An to specify a bit in address register (An).
Bits in each register are assigned bit numbers 0-15, from LSB to MSB. For bit in bit, Rn and bit, An, you
can specify a bit number in the range of 0 to 15.
Figure 1.7.3 Register bit specification
●
Memory bits
Figure 1.7.4 shows addressing modes used for memory bit specification. Table 1.7.1 lists the address
range in which you can specify bits in each addressing mode. Be sure to observe the address range in
Table 1.7.1 when specifying memory bits.
b15
b0
bit,Rn
(bit: 0 to 15, n: 0 to 3)
Rn
b15
b0
bit,An
(bit: 0 to 15, n: 0 to 1)
An
bit,base:8
bit,base:16
bit,base:8[SB]
bit,base:11[SB]
bit,base:16[SB]
bit,base:8[FB]
[An]
base:8[An]
base:16[An]
Addressing modes
Absolute addressing
SB-based relative
addressing
FB-based relative
addressing
Address register-based indirect
addressing
Address register-based relative
addressing
bit,base:16
Figure 1.7.4 Addressing modes used for memory bit specification
Addressing
Specification range
Remarks
Lower limit (address) Upper limit (address)
bit,base:16
00000
16
01FFF
16
bit,base:8[SB]
[SB]
[SB]+0001F
16
The access range is 00000
16
to 0FFFF
16
.
bit,base:11[SB]
[SB]
[SB]+000FF
16
The access range is 00000
16
to 0FFFF
16
.
bit,base:16[SB]
[SB]
[SB]+01FFF
16
The access range is 00000
16
to 0FFFF
16
.
bit,base:8[FB]
[FB]–00010
16
[FB]+0000F
16
The access range is 00000
16
to 0FFFF
16
.
[An]
00000
16
01FFF
16
base:8[An]
base:8
base:8+01FFF
16
The access range is 00000
16
to 020FE
16
.
base:16[An]
base:16
base:16+01FFF
16
The access range is 00000
16
to 0FFFF
16
.
Table 1.7.1 Bit-Specifying Address Range
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...