Question

What is flow control? Give two examples of instructions that are used to accomplish it.

What is flow control? Give two examples of instructions that are used to accomplish it.

Homework Answers

Answer #1

We know that sequential statements are executed line by line i.e in a sequential manner.

flow control defines how the statements/instructions are executed . flow control keeps track of all instructions flow.

example:

mov ax,5

mov bx,5

jmp label1:

mov cx,3

label1:

.....

....

In the above example, mov instructions are executed normally but jmp instruction causes the change in program flow , control will go to label1: (it is called unconditional jump), rather than executing mov cx,3.

Two example instructions are:

JC----> jump if carry

this instruction will change the control flow of program when carry flag (CF) is set to 1

JA-----> jump if above

ex: cmp ax,bx

ja label2

...

label2:

....

It is used with unsigned (positive) numbers.

The above instruction changes the control flow if first operand value is greater than second operand.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Why don’t we see the crime-control benefits of selective incapacitation? Give a few examples of what...
Why don’t we see the crime-control benefits of selective incapacitation? Give a few examples of what it doesn’t accomplish what it means to.
Give two examples of other planning decisions and two examples of other control decisions that may...
Give two examples of other planning decisions and two examples of other control decisions that may be made at PostNews.com
5. What are the three commonly used procurement methods? Give one or two daily examples for...
5. What are the three commonly used procurement methods? Give one or two daily examples for each method. 6. Give your own reasons that why logistics emerges from military logistics management. 7. Which major task do you think is more important in production management? 8. Explain how ABC inventory control works.
Give three examples of input-output control
Give three examples of input-output control
what is superdelegates and give two examples ?
what is superdelegates and give two examples ?
1-Give two examples of an Invitation to Treat? 2-Give two examples of what could be forms...
1-Give two examples of an Invitation to Treat? 2-Give two examples of what could be forms of Consideration? 3-Explain how the formula of Contract Formation plays out in a Tendering Situation.
3) Give 3 examples of Fixatives used in fecal transport and what they are used for....
3) Give 3 examples of Fixatives used in fecal transport and what they are used for. 1. 2. 3.
What is rent seeking? Give two examples.
What is rent seeking? Give two examples.
What is an Intentional Tort? Give two examples and explain
What is an Intentional Tort? Give two examples and explain
What is white collar crime and give two examples?
What is white collar crime and give two examples?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT