Flow

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

START Initialize C as 00H Load A from the address Move the content of A to B Load A from the address

Add the content of A and B

If carry

Increment C

Store the Result

STOP

START Initialize C as 00H Load A from the address Move the content of A to B Load A from the address

Subtract the content of B from A

If carry

Increment C

Store the Result

STOP

START

Load A with divisor

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

Store the accumulator


Increment C

Decrement C

STOP

If zero

Store the Result

STOP

You might also like