Professional Documents
Culture Documents
Flow
Flow
Flow
If carry
Increment C
STOP
START Initialize C as 00H Load A from the address Move the content of A to B Load A from the address
If carry
Increment C
STOP
START
Copy A from B Load the A with dividend Move get the multiplier in D Intialise D with 00H
Compare A with C START If Initialize C as 00H carry Get the first data in HL Get the second data in DE pair multiplier in Store the accumulator D Move the content of L to A Move the content D of Add the content of B and A the accumulator
Increment D Subtract C
If carry
Decrement C
STOP
If zero
STOP