Question: Consider the assembly code as follows. Assume that the starting address of the first instruction is 10000 in the decimal notation. Translate the first and
Consider the assembly code as follows. Assume that the starting address of the first instruction is 10000 in the decimal notation. Translate the first and last instructions into corresponding machine codes, given that the opcodes of beq and j are 000100 and 000010 in binary notation. Loop: beq $9, $0, $End add $8, $8, $10 addi $9, $9, -1 j Loop End:
b. The Program Counter (PC) of beq $9, $0, End is 10000, what is the new PC if the branch is taken? Only answer b.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
