Question: 2 . ( 3 0 pts ) In a hyperthetic asembly code depicted below, a jump instruction ( at loca tion with the addres lable
pts In a hyperthetic asembly code depicted below, a jump instruction at loca tion with the addres lable ABC uses the PCrelative addressing mode to jump to the load instruction with the address label HEREnote: this jump is a backward jump: : : HERE ABC load rr : : jump HEREPC : Assume that after the first pass of assembly process, the label ABC is determined to have an address value of xc and the label HERE has xbd Answer each of the following questions. a In the second pass of assembly process to assemble the code for the jump instruction, show how the assembler determines the reltaive distance value a bit value to be placed in the machine code, and the value thus calculated. Determine its decimal value note: should be a negative value due to jump back and determine how many instructions backward this jump instruction is to jump in order to reach the load instruction.. b Assume that the code is relocated to another secion of memory after a context switch, and the jump instruction is now at x answer each of the following questions. i What should be the address of the load instruction now? ii Show how the CPU calculates this correct target location when this jump instruction is executed, using the machine code derived from a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
