954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MIPS language question2 pls help..

addi $t0, $s0,48
beq $t1, $t0, L1
L2: lw $t1, 16($t0)
srl $t2, $t1,3
bne $t2, $t0, L2
L1: sw $t2, 32($t1)
ori $s0, $s0, 0xFF7F
j L1

if the machine code equivalent to the above MIPS codes is loaded in memory at starting address 0xd24fc91c, wat exact binary values will be used in the address/offset fields of the machine code for the instructions beq, bne and j?

c21ahongyi
Newbie Poster
2 posts since Dec 2005
Reputation Points: 10
Solved Threads: 0
 

addi $t0, $s0,48 beq $t1, $t0, L1 L2: lw $t1, 16($t0) srl $t2, $t1,3 bne $t2, $t0, L2 L1: sw $t2, 32($t1) ori $s0, $s0, 0xFF7F j L1

if the machine code equivalent to the above MIPS codes is loaded in memory at starting address 0xd24fc91c, wat exact binary values will be used in the address/offset fields of the machine code for the instructions beq, bne and j?


Use SPIM simulator to find out

andor
Posting Whiz in Training
276 posts since Jun 2005
Reputation Points: 251
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You