CHAPTER 3 REGISTERS
3.3.1How To Use The Temporary Accumulator (T)
The
■How to Use the Temporary Accumulator (T)
The
MOVW A, 0042H | - |
MOVW A, 1280H | - |
ADDCW A | - |
Figure 3.3-7 shows the operation for the accumulator and temporary accumulator when the above example is executed.
Figure 3.3-7 Operation of Accumulator (A) and Temporary Accumulator (T) in Word Data Processing
Before execution |
|
|
|
|
|
|
|
| Last result | ||||
A | XXXXH | A | 1234H | A | 5678H |
| + | A | 68ACH |
| |||
T | XXXXH | T | XXXXH | T | 1234H | CF | 0 | T | 1234H |
| |||
|
| RAM |
|
| RAM |
|
| RAM |
|
|
| RAM |
|
1281H | 78H | 1281H | 78H | 1281H |
| 78H |
|
| 1281H | 78H |
| ||
1280H | 56H | 1280H | 56H | 1280H |
| 56H |
|
| 1280H | 56H |
| ||
| ... | ... |
| ... | ... | ... | ... |
|
| ... | ... | ||
0043H | 34H | 0043H | 34H | 0043H | 34H |
|
| 0043H | 34H |
| |||
0042H | 12H | 0042H | 12H | 0042H |
| 12H |
|
| 0042H | 12H |
|
20