We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6
Continuous loop-repeat task continuously
Conditional loop-repeats a task until certain
data conditions are met. Flowchart of continuous loop Looping-In this technique, the program is instructed to execute certain set of instructions repeatedly to execute a particular task number of times. Counting-This technique allows programmer to count how many times the instruction/set of instructions are executed. Indexing-This technique allows programmer to point or refer the data stored in sequential memory location one by one. Generalized programming flowchart Start Decision Making. Are Initialization all operations complete?
Data Acquisition Yes
Output Data Processing
Stop Temporary storage of partial results
Getting ready for
next operation LDA 2000H ;divisor MOV B,A LDA 2001H ;dividend MVI C, 00H LOOP: CMP B JC BRANCH SUB B INR C JMP LOOP BRANCH: STA 3000H ;reminder MOV A,C STA 3001H ;quotient HLT LXI MOV B,M H,2000 MOV M,A MOV C,M DCX H DCR C MOV M,B REPEAT: MOV D,C INX H LXI SKIP: DCR D H,2001 JNZ LOOP LOOP: MOV A,M DCR C INX H JNZ REPEAT CMP M HLT JC SKIP