请问这是什么的Assembly language program?MIPS?
MIPS registers and conventi##被过滤##:
Name Number Conventional usage
$0 0 C##被过滤##tant 0
$v0-$v1 2-3 Expression evaluation & function results
$a0-$a3 4-7 Arguments 1 to 4
$t1-$t9 8-15,24,3 Temporary (not preserved across call)
$s0-$s7 16-23 Saved Temporary (preserved across call)
$k0-$k1 26-27 Reserved for OS kernel
$gp 28 Pointer to global area
$sp 29 Stack pointer
$fp 30 Frame pointer
$ra 31 Return address (used by function call)
------------------------------------------------
SPIM
li $v0, 1 # print_int
。。。。
li $v0, 4 # print_string
。。。。
好像就是
printf("%d",$a);
printf("%s",$b);
or something like that
不太懂,帮不了你。。。查查MIPS,SPIM吧,看上去就是这些东西
[此贴子已经被作者于2004-3-18 23:21:23编辑过]
|