3. Data Formats
The H8/300L CPU can process 1-bit data, 4-bit (BCD) data, 8-bit (byte) data, and 16-bit
(word) data. Essentially all instructions can process byte data. The bit manipulation
instructions process 1-bit data and certain data transfer and arithmetic instructions process
word data. The decimal adjust instructions process 4-bit BCD data.
The figures below show the formats in which data is stored in general registers and memory.
General Register Data Formats
Data Type
1-bit data
1-bit data
Byte data
Byte data
Word data
4-bit BCD data
4-bit BCD data
Register No.
7
7
6
RnH
RnL
7
MSB
RnH
RnL
15
MSB
Rn
7
Upper digit
RnH
RnL
Data Format
0
5
4
3
2
1
0
7
Don't-care
7
0
LSB
7
Don't-care
MSB
4
3
0
Lower digit
7
Don't-care
31
Don't-care
6
5
4
3
2
1
Don't-care
LSB
LSB
Don't-care
4
3
Upper digit
Lower digit
CPU
0
0
0
0
0