101
CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS
A
T
IX
SP
PC
EP
PS
A
T
IX
SP
PC
EP
PS
XX 2F
XX 29
N
Byte Byte
10110000
H I IL1 IL0 Z V C
Byte Byte
N
10110000
H I IL1 IL0 Z V C
Byte Byte
(Before execution) (After execution)
Memory FFFF
H Memory FFFFH
0000H 0000H
Execution example : DAS
Table 6.27-1 Decimal Adjustment Table (DAS)
C-flag H-flag Correction
value
C-flag after
execution
0
1
0
1
0
1
1
0
00
66
06
60
0
1
0
1
Table 6.27-2 Execution Example
Mnemonic AL C H
MOV A, #70H 70
××
SUBC A, #25H 4B 0 1
DAS 45 0 1