I want to convert a string to its binary representation in C to fit for MIPS assembly (I am writing a MIPS assembler in C).
For the string "The sum", MIPS does it the following way (I extracted MIPS's .data section):
00100000011001010110100001010100
00100000011011010111010101110011
01101110001000000110011001101111
01100101011000100110110101110101
01101001001000000111001101110010
01110010011000010010000001101110
00100000011110010110000101110010
The letter T
is 1010100 in binary. I can see 1010100 at the end of the first line, but shouldn't the rest be zero's (so it is sign extended to 32-bit since MIPS deals with 32-bits)?
h
is 1101000, and the second line does not even have 1101000. Why is that?
Can someone please explain that to me?
Thank you,