MIPS language question2 pls help..

Reply

Join Date: Dec 2005
Posts: 2
Reputation: c21ahongyi is an unknown quantity at this point 
Solved Threads: 0
c21ahongyi c21ahongyi is offline Offline
Newbie Poster

MIPS language question2 pls help..

 
0
  #1
Dec 17th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 275
Reputation: andor has a spectacular aura about andor has a spectacular aura about andor has a spectacular aura about 
Solved Threads: 29
andor's Avatar
andor andor is offline Offline
Posting Whiz in Training

Re: MIPS language question2 pls help..

 
0
  #2
Mar 15th, 2006
Originally Posted by c21ahongyi
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC