Assembly 有一个整数并用MIPS打印出十六进制
如果我有一个整数,那么将整数打印成十六进制的代码行是什么?我知道您使用34作为命令,但我不确定它的其余部分。您所指的“34”是Assembly 有一个整数并用MIPS打印出十六进制,assembly,mips,mars-simulator,Assembly,Mips,Mars Simulator,如果我有一个整数,那么将整数打印成十六进制的代码行是什么?我知道您使用34作为命令,但我不确定它的其余部分。您所指的“34”是mars模拟器中“以十六进制打印整数”的系统调用号 系统调用引用是: 假设您的号码在寄存器中,比如说,$t5,则顺序为: move $a0,$t5 # put number into correct reg for syscall li $v0,34 # syscall nu
mars
模拟器中“以十六进制打印整数”的系统调用号
系统调用引用是:
假设您的号码在寄存器中,比如说,$t5
,则顺序为:
move $a0,$t5 # put number into correct reg for syscall
li $v0,34 # syscall number for "print hex"
syscall # issue the syscall
您所指的“34”是mars
模拟器中“十六进制打印整数”的系统调用号
系统调用引用是:
假设您的号码在寄存器中,比如说,$t5
,则顺序为:
move $a0,$t5 # put number into correct reg for syscall
li $v0,34 # syscall number for "print hex"
syscall # issue the syscall