x86 asm: move gnu gas char literals from x86-assembly-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-23 00:00:03 +00:00
parent d62070d934
commit 23d8f703fd
2 changed files with 39 additions and 0 deletions

View File

@@ -12363,6 +12363,20 @@ When reading disassembly, many instructions have either a `.n` or `.w` suffix.
Bibliography: https://stackoverflow.com/questions/27147043/n-suffix-to-branch-instruction
==== GNU GAS assembler char literals
link:userland/arch/x86_64/char_literals.S[]
http://stackoverflow.com/questions/33246811/how-to-use-character-literals-in-gnu-gas-to-replace-numbers
This syntax plays horribly with the C preprocessor:
....
MACRO($'a)
....
fails because cpp treats string and char literals magically.
=== NOP instructions
* x86: link:userland/arch/x86_64/nop.S[NOP]