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
1. The process abstraction is a popular way to organize concurrent programs, but it is not the only choice. An alternative to the process abstraction is to design a single-threaded

Question 1 Bring out the advantages of Linux Operating systems Question 2 Match the Symbols with their respective file types              Symbol               File N

Why is it called out of band protocol? A1) FTP uses port 20 and port 21; port 20 is used for data connection, whereas port 21 is used for control connection. FTP is known as out-of

Given the scenario below, construct a conceptual model. The Seville, Spain soccer association is renovating their soccer arena. They are adding luxury boxes that will be offered to

HARDWARE BASICS In the foregoing section of this Unit, an attempt has been made to explain to you the historic perspective relating to the development of computer from its ear

What role would you assign to each of the four workstation and any other equipment

Shell Scriptiong

DIAGRMS OF TYPES OF LOCAL AREA NETWORK

Input/Output Services:   Every operating system, large or small, provides input/output services for each device in the system. The operating system includes I/O device driver

QUESTION (a) Compare the adapter pattern with the façade and decorator patterns. (b) Illustrate a two-way adapter pattern. (c) Describe 3 components of a pattern. (d)