MIPS understand binary representation

岁酱吖の 提交于 2019-12-31 02:10:51

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9828251/mips-understand-binary-representation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!