0% found this document useful (0 votes)
31 views4 pages

Flow

The document contains instructions to initialize a register C to 00H, load values from addresses into registers A and B, perform addition or subtraction on the registers' contents depending on the section, increment register C if there is a carry, and store the result. It also contains instructions for initializing registers with a divisor and dividend, comparing the divisor to another register while incrementing a multiplier, and storing the result if the divisor reaches zero.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

Flow

The document contains instructions to initialize a register C to 00H, load values from addresses into registers A and B, perform addition or subtraction on the registers' contents depending on the section, increment register C if there is a carry, and store the result. It also contains instructions for initializing registers with a divisor and dividend, comparing the divisor to another register while incrementing a multiplier, and storing the result if the divisor reaches zero.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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