EMAC PRIMER Instruction Manual page 34

Table of Contents

Advertisement

FF05
The D register and the Carry flag are subtracted from the A register (A = A - D - carry flag = 21 hex - 10
hex - 1 = 10 hex).
FF06
B equals A which is 10 hex
FF07
This is the end of the program.
Examine the BC register pair and you will see that it is now 1001 hex just as predicted in the equation that was shown. Try
pressing the reset button and loading BC and DE with other values such that the C register is greater than the E register
and single step the program again.
34

Advertisement

Table of Contents
loading

Table of Contents