Ascii立即产生气体?

时间:2020-09-17 05:11:25

标签: assembly x86 ascii gnu-assembler character-literals

是否可以在gas中输入字符作为立即数?例如:

mov $1,     %rax # decimal
mov $0xA,   %rbx # hex
mov $0b100, %rcx # binary

mov 'A', %rdx # something like this?

我知道我可以在.ascii.string指令中定义它,但是可以直接作为内联函数吗?

0 个答案:

没有答案