David542
David542

Reputation: 110382

Ascii immediate in gas?

Is there a way to enter in a character as an immediate in gas? For example:

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

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

I know I can define this in the .ascii or .string directive but can this be done inline as an immediate?

Upvotes: 1

Views: 26

Answers (0)

Related Questions