MIPS Printing Integer from a 2-byte integer

liunx

Guest
So say I have an array which is like this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />.data<br /><br />values:<br />      .half -17<br />      .half  16<br />      .half 153<br /><!--c2--></div><!--ec2--><br /><br />and I want to print it as<br /><br />-17<br />16<br />153<br /><br /><br />How do I do this?? If it is stored in a 4 byte of integer then it would be very easy to do, but not it's stored as a 2-byte integer. <br /><br />In a 4 -byte integer I just quadruple starting from the first array address and then print the array, but how about this one?? Can someone help me??
</div>
 
Top