问题描述
Add #$28,R4,R3
$
在此表达式中是什么意思? R4的值是1224,最终结果应该是1264,但是我不知道它是如何工作的.
Add #$28,R4,R3
What does $
mean in this expression? R4 value is 1224 and the end result should be 1264, but I have no idea how this works.
推荐答案
在某些汇编程序中,"$"仅表示您使用的是十六进制值.在x86架构上,通常用'h'书写数字,或者如果第一个字符不是数字,则必须在28h
或0afh
前面使用零.在C语言中,您将编写0x28
.
In some assemblers, the '$' means simply that you are using a hex value. on the x86 architecture it usual to write the number with 'h' or if the first character is not a digit, then you have to use a zero in front 28h
or 0afh
.In C you would write 0x28
.
例如在6510(Commodore 64)或M68000(即Amiga)上,使用'$'字符来表示,例如'$ 28'.我确定还有其他使用此符号的汇编器.
For example on the 6510 (Commodore 64) or M68000 (i.e. Amiga) the '$' character was used for this like '$28'. I'm sure there are other assemblers as well using this notation.
这篇关于$在MIPS汇编中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!