![]() |
| ||
| MIPS language question pls help.. address data ------------------------- 0xad 0x59 0xae 0xfa 0xaf 0x9d oxb0 0xa6 0xb1 0x78 0xb2 0x04 oxb3 0xbc oxb4 0x88 0xb8 0xff the MIPS code: addi $s1, $zero, 0xab lb $t0, 5($s1) lw $t1, 5($s1) addi $s1, $s1, 11 lbu $t2, -8($s1) lw $t3, -8($s1) wat will the hexadecimal value be of registers $t0, $t1, $t2,$t3,after executing the above codes, if the system is using little-endian byte order? |
| ||
| Re: MIPS language question pls help.. You can't load word lw $t1, 5($s1)becouse 5 isn't divisable with 4 so you also can't do this addi $s1, $s1, 11and then lw $t3, -8($s1)the rest is correct so $t0 is 0xFFFFFF9d and $t2 is 0x000000fa. For learning MIPS you can use SPIM (yes revers from MIPS) simulator. Whole asm code # FAKULTET TEHNICKIH NAUKA NOVI SAD |
| All times are GMT -4. The time now is 6:32 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC