MIPS了解二进制表示形式 [英] MIPS understand binary representation

查看:406
本文介绍了MIPS了解二进制表示形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在学习大会的过程中,我提出了一个问题

如果我执行以下操作:

la  $a1, 0x3f 

数字63被放置"在a1上.

但如果我这样做:

la  $a1, 63

相同.

但是我该如何处理二进制文件?可以说

la  $a1, 00111111

MIPS如何理解00111111是二进制数字63?

解决方案

通常不支持二进制文字常量.您正在使用什么汇编程序?如果它支持C样式预处理,则有几个可用选项.

此处是一个示例. >

On the process of learning Assembly i got one question

If i do the following:

la  $a1, 0x3f 

The number 63 is "putted" on a1.

But If I do:

la  $a1, 63

Its the same.

But how can I handle binary? Lets say

la  $a1, 00111111

How can MIPS understand that 00111111 is the number 63 in binary?

解决方案

Binary literal constants are not typically supported. What assembler are you using? If it supports C style preprocessing, there are several options available.

Here is one example.

这篇关于MIPS了解二进制表示形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆