MIPS assembly `addi` instruction, how is a hexadecimal immediate interpreted?

235 views Asked by At

there is a difference between those two instructions? addI $12,$1,0x0000ffff vs addI $12,$1,0xffff

I need to know what is the value of $12 after those instruction :

lui $1,0xffffff00
addi $12,$1,0x0000ffff

should i treat 0x0000ffff as sign extended - 0xfffffffff or as it is - 0x0000ffff and then $12 is 0xff00fffff ? thanks

0

There are 0 answers