Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これらのコマンドを取得したい:
jl some_label(%rip) # or jl *%rax
Intel x64アーキテクチャ用に書いているasmプログラムで。
このコードをコンパイルしようとすると、GCC は「jl のオペランド型が一致しません」と表示します。
x86 では、条件付きジャンプは相対的です。「反転した」条件付きジャンプの後に無条件ジャンプを使用できます。
jge skip_jump jmp *%rax # AT&T syntax skip_jump:
同等の NASM 構文はjmp rax. いずれにせよ、RIP = RAX を設定するので、レジスタ間接ジャンプです。
jmp rax