Question: This question is about a 6 4 bit RISC CPU which has a call ( or callq ) instruction which works exactly the same way

This question is about a 64 bit RISC CPU which has a call (or callq) instruction which works exactly the same way as these instructions in Y86-64(or Intel X86-64)(REMINDER: In a RISC CPU, all instructions are the same length, that is, the same number of bytes). Suppose an assembly language program with the following instruction:
call function4
The address of this call instruction is 0x8000, and the address of the function4 label is 0x9000. Also, the length of the call instruction is 8 bytes (8 in hexadecimal also).
A.What return address will be pushed onto the stack when the call instruction above is executed? You should give the numeric value of the address in hexadecimal.
ANSWER:
B.What address will be in the PC immediately after this call function4
instruction is executed (that is, before the next instruction begins execution)?
ANSWER:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!