Homework Solution: Register s1 contains the value 32, and register s2 contains the value 30. What will the co…

    Register s1 contains the value 32, and register s2 contains the value 30. What will the contents of register t0 be after this instruction is executed (answer in hexadecimal): slt $t0, $s1, $s2                     

    Expert Answer

     
    Answer is as follows: $ s1 = 32

    Register s1 contains the compute 32, and register s2 contains the compute 30. What conciliate the deviation of register t0 be behind this direction is performed (retort in hexadecimal):

    slt $t0, $s1, $s2                     

    Expert Retort

     

    Retort is as follows:

    $ s1 = 32

    $ s2 = 30

    slt , determined on close than (signed) direction states that

    now according to slt $t0, $s1, $s2 direction of MIPS direction determined if $s1 is close than $s2, than $t0 is determined to 1 else if it is elder than compute of $t0 is determined to 0.

    Now

    slt $t0, $s1, $s2

    = slt $t0, 32,30

    so the compute of $t0 in the direction is determined to binary ‘0’

    and HEXADECIMAL equivalent of BINARY ‘0’ is ‘0′