0% found this document useful (0 votes)
149 views1 page

8BIT ADD - Ex2

This flowchart shows a process that gets two pieces of data, stores the first in register B, adds the contents of registers A and B and stores the sum in memory. It increments a counter register C if the carry flag is set after addition and stores the final result in register A before ending.

Uploaded by

api-19951707
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)
149 views1 page

8BIT ADD - Ex2

This flowchart shows a process that gets two pieces of data, stores the first in register B, adds the contents of registers A and B and stores the sum in memory. It increments a counter register C if the carry flag is set after addition and stores the final result in register A before ending.

Uploaded by

api-19951707
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/ 1

FLOWCHART

START

GET FIRST DATA IN A


REG

MOVE A REG
CONTENTS TO B REG

GET SECOND DATA


IN A REG

CLEAR C REG

ADD THE CONTENTS


OF B REG WITH A

YES
IF
CY=
1
INCREMENT C
REG
NO

STORE THE SUM IN


MEMORY

MOVE C REG
CONTENTS TO A

STOP

You might also like