Consider the following fragment of MIPS. Loop : lui $at , 0xABCD # a ori $a0 , $
ID: 3609179 • Letter: C
Question
Consider the following fragment of MIPS. Loop : lui $at , 0xABCD # a ori $a0 , $at , 0xFEDC # b j a l add l ink # c bne $a0 , $v0 , Loop # d Which of the following instructions may need to be edited duringlink phase? Explain.i made an assumption that bne would be have to be eddidet bcauseits a branch but I am not sure.
/computer-science-topic-5-488001-cpi0.aspx Consider the following fragment of MIPS. Loop : lui $at , 0xABCD # a ori $a0 , $at , 0xFEDC # b j a l add l ink # c bne $a0 , $v0 , Loop # d Which of the following instructions may need to be edited duringlink phase? Explain.
i made an assumption that bne would be have to be eddidet bcauseits a branch but I am not sure.
/computer-science-topic-5-488001-cpi0.aspx Consider the following fragment of MIPS. Loop : lui $at , 0xABCD # a ori $a0 , $at , 0xFEDC # b j a l add l ink # c bne $a0 , $v0 , Loop # d Which of the following instructions may need to be edited duringlink phase? Explain.
i made an assumption that bne would be have to be eddidet bcauseits a branch but I am not sure.
/computer-science-topic-5-488001-cpi0.aspx
Explanation / Answer
Dear, The linking is done during the excecution ofthe command JAL( jump and link ). During this command execution thecontrol jumps and links the code Load Upper Immediate (Lui)and performs operations. So, the instructions that are edited are lui, ori during linkphase. " I hope this will help you "Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.