EMAC PRIMER Instruction Manual page 39

Table of Contents

Advertisement

FF03
Single step the DAA instruction and examine the A register and you will see that 66 was added to it which
set the carry flag and made the A register 13.
FF04
Single step to FF07 and examine the A register ( it will be 32) and flag register. The auxiliary carry flag
will be 1 and the carry flag will be 0 so the DAA instruction that follows will add 6 to the A register.
FF07
Single step the DAA instruction at this address and by examining the A register you will see that 6 was
added to it.
FF08
Single step and the A register will be copied to the B register.
FF09
This is the end of the program.
Verify that the BC register is 3813, which is the sum of the decimal numbers 1934 and 1879. Now replace the DAA
instructions at FF03 and FF07 with 00, which is an instruction that does nothing. Load DE and BC with the same values as
before then run the program again. This time the BC and DE registers will be added as if they were hex numbers and the
result will be 31AD hex.
39

Advertisement

Table of Contents
loading

Table of Contents