MIPS-如何在不使用转换指令的情况下将浮点输入转换为整数,并且仅使用shift或Rotate?

时间:2019-03-19 03:25:50

标签: mips

li $v0, 4         # system call code for Print String 
la $a0, prompt    # load address of prompt into $a0 
syscall           # print the prompt message 
li $v0, 6         # system call code for Read float
syscall           # reads the value of N into $v0 
cvt.w.s $f0,$f0   

所以我不使用cvt.w.s,而是如何将浮点数更改为整数?还有什么方法可以检查用户输入是否为浮点数?

0 个答案:

没有答案
相关问题