Deprecated: Implicit conversion from float-string "1541577877.917" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1541577877.917" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1541577877.917" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1541577877.917" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1541577877.917" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1541583977.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1541583977.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1541583977.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1541583977.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1541583977.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1541646409.974" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1541646409.974" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1541646409.974" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1541646409.974" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1541646409.974" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1542182790.195" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1542182790.195" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1542182790.195" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1542182790.195" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1542182790.195" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Branch Instruction / GATE Overflow for GATE CSE
562 views

1 Answer

Best answer
1 votes
1 votes
RET (1-byte instruction)

-It retrieves the return address from the top of the stack.

Load the program counter with the return address.

The CALL instruction keeps the return address at the two memory locations immediately before where the Stack Pointer is currently pointing.

So the SP must be set correctly before using the CALL instruction.

RET instruction brings the contents of the two memory locations to the top of the stack and uses these as the return address.

If the content of the stack pointer is a subroutine is modified then the return address will be lost.

So, the option (B) should be the correct answer.

 

Please do verify me the answer once.
selected by

Related questions


Deprecated: Implicit conversion from float-string "1543725441.969" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1543725441.969" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1543725441.969" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1543725441.969" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1528607881.753" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1528607881.753" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1528607881.753" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1528607881.753" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
514
views
1 answers
1 votes
Na462 asked Dec 2, 2018
514 views
Assume that the base register contains 32856. The program counter is currently having a value of 25687 memory location. What is the branch address if the address field of...
500
views
1 answers
0 votes
srestha asked Jun 10, 2018
500 views
What is meaning of offset in Branch instruction? Is this offset same as conditional instruction offset?What is meaning of offset in virtual address? Where is actual diffe...
3.1k
views
3 answers
5 votes
Xylene asked Jun 6, 2017
3,092 views
I have a doubt regarding the implementation of BSA instruction. I read that BSA instruction can be implemented as :-T4:- m[AR] < PC; AR< AR+1T5:- PC< AR; SC< 0He...
1.1k
views
1 answers
0 votes
khushtak asked Oct 19, 2015
1,144 views
Among the branch instructions 30% conditional and 70% of them does not satisfy the condition ( branch not taken). If there is no stall due to them. What is average instru...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 4.0 8% 2.5 5% 72 1.7 3% 2 0.0 0% 569k 50%
Control 12.6 26% 1.6 3% 5 11.4 24% 12 0.0 0% 187k 16%
View 1.2 2% 1.2 2% 12 0.0 0% 0 0.0 0% 97k 8%
Theme 23.6 49% 3.7 7% 15 19.9 42% 3 0.0 0% 264k 23%
Stats 5.9 12% 0.1 0% 0 5.9 12% 1 0.0 0% 0k 0%
Total 47.2 100% 9.2 19% 104 38.9 82% 18 0.0 0% 1121k 100%