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.
Nasm に特定のレーベルのアドレスを教えてもらう方法はありますか? 例えば
; blah blah blah... _routine: ; do some stuff ; blah blah blah
コンパイル時_routineの のアドレスが知りたいです。言い換えれば、私は個人的にアドレスが何であるかを知りたいと思っています (プログラム内で値にアクセスできるようにするのではなく)。
_routine
ラベルの名前を使用できるはずです。NASM のラベルは自動的にアドレスとして扱われます。
したがって:
mov rax,label_name
アドレスを取得する必要があります。
ああ、このちょっとした魔法をソース ファイルに入れることができます(クレイジー nasm...)
[map all myfile.map]