944,010 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 3735
  • Assembly RSS
Dec 17th, 2005
0

MIPS language question2 pls help..

Expand Post »
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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
c21ahongyi is offline Offline
2 posts
since Dec 2005
Mar 15th, 2006
0

Re: MIPS language question2 pls help..

Quote 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
Reputation Points: 251
Solved Threads: 29
Posting Whiz in Training
andor is offline Offline
274 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: MIPS language question pls help..
Next Thread in Assembly Forum Timeline: I'm new





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC