Instructions for cycles: loop, Basic Computer Science

They transfer the process flow, provisionally or totally, to a destiny, replicating this action until the counter is zero.
LOOP
LOOPE
LOOPNE
LOOP INSTRUCTION
reason: To produce a cycle in the program.
Syntax:
LOOP label
The loop instruction reduces CX on 1, and transfers the flow of the program to the label specified as operator if CX is different than 1.
LOOPE INSTRUCTION
reason: To produce a cycle in the program considering the position of ZF.
Syntax:
LOOPE label
This instruction reduces CX by 1. If CX is different to zero and ZF is equal to 1, then the flow of the program is transferred to the label pointed to as operator.
LOOPNE INSTRUCTION
reason: To produce a cycle in the program, considering the state of ZF.
Syntax:
LOOPNE label
This instruction reduces one from CX and transfers the flow of the program only if ZF is different to 0.
Posted Date: 5/4/2012 7:13:24 AM | Location : United States







Related Discussions:- Instructions for cycles: loop, Assignment Help, Ask Question on Instructions for cycles: loop, Get Answer, Expert's Help, Instructions for cycles: loop Discussions

Write discussion on Instructions for cycles: loop
Your posts are moderated
Related Questions
Running more than a few threads is like running several different programs at the same time as, but with the following profits: • Multiple threads inside a process share the same d

what is cpu


Library function :   These are the functions supplied with the programming language. The code or definition of library functions does not have to be written in a user program w

create a flowchart showing average score for the 3 quizzes assume that there are 3 sections each having 5 students the only valid number to be entered is 1-100 for the quizzes shou

QUESTION (a) Write a program to swap two names between two variables for examples: N1 = "Mary Anne" N2 = "Queen Mary". The program should make use of an appropriate Fu

Assignment of computer science

Question 1 With an example, illustrate the concept of extern variable Question 2 What is the difference between pointer variable and simple variable? Question 3 Give the

Scores from a statistics exam are reported as deviation scores. Which of the following deviation scores indicates a higher position in the class distribution?

Memory hierarchy: There is another type of high speed memory, known as Cache memory, which is used to increase the speed of processing by making current programs and data avai