about flag instructions, Basic Computer Science

They straightforwardly affect the content of the flags.
CLC
CLD
CLI
CMC
STC
STD
STI
CLC INSTRUCTION
Reason: To uncontaminated the cartage flag.
Syntax:
CLC
This instruction turning the bit corresponding to the cartage flag, or in extra words it puts it on zero.
CLD INSTRUCTION
Reason: To uncontaminated the address flag.
Syntax:
CLD
This instruction exits the corresponding bit to the address flag.
CLI INSTRUCTION
Reason: To uncontaminated the interruption flag.
Syntax:
CLI
This instruction exits the interruptions flag, disabling this way those maskarable interruptions.
A maskarable interruptions is that one whose functions are disabled when IF=0.
CMC INSTRUCTION
Reason: To balance the cartage flag.
Syntax:
CMC
This instruction goes together the state of the CF flag, if CF = 0 the instructions equals it to 1, and if the instruction is 1 it equals it to 0.
We might say that it only "inverts" the value of the flag.
STC INSTRUCTION
Reason: To make active the cartage flag.
Syntax:
STC
This instruction locates the CF flag in 1.
STD INSTRUCTION
Reason: To make active the address flag.
Syntax:
STD
The STD instruction puts the DF flag in 1.
STI INSTRUCTION
Reason: To set in motion the interruption flag.
Syntax:
STI
The instruction sets off the IF flag, and this enables the maskarable external interruptions ( the ones which only function when IF = 1).
Posted Date: 5/4/2012 7:28:16 AM | Location : United States







Related Discussions:- about flag instructions, Assignment Help, Ask Question on about flag instructions, Get Answer, Expert's Help, about flag instructions Discussions

Write discussion on about flag instructions
Your posts are moderated
Related Questions
• CPU Structure This section, with a simplified model of a central processing unit as an instance, takes you through the role of each of the major basic parts of the CPU. It also l

Bootstrap loader: The critical programs are loaded into memory by the bootstrap loader at start-up time and will remain resident as long as the computer is running. The bootst

Output Devices Video Display Unit (VDU) or Monitor Video Display Unit is similar to a television. It is used to display the results of processes. The screen is il

1. The volume of a pyramid is taken from the formula: V = 1/3 x AREA OF BASE x ALTITUDE Given the dimensions of a pyramid, calculate the cost of materials for making that pyrami

assignment 1:architectural design 2: component design

Ask questiCreate a flowchart that displays the student''s average score for three quizzes. + Assume that there are 3 sections each having 5 students + The only valid number to be


Suppose there are exactly five packet switches (Figure 4) between a sending host and a receiving host connected by a virtual circuit line (shown as dotted line in figure 4). The tr

The term ‘page traffic’ describes

Digital Camera: A Digital camera is an electronic device which takes video or still photographs or both, digitally by recording images via an electronic image sensor. Digital