2016-10-02 44 views

回答

1

你所指的「34」是mars模擬器中「print integer in hexadecimal」的系統調用號。

的系統調用參考是:http://courses.missouristate.edu/kenvollmar/mars/help/syscallhelp.html

假設你的數量在寄存器中,也就是說,$t5,順序將是:

move $a0,$t5     # put number into correct reg for syscall 
    li  $v0,34     # syscall number for "print hex" 
    syscall       # issue the syscall