高水準言語を使用する開発者としての役割を支援するために、空き時間にアセンブリ言語を学ぼうとしています。
ここの NASM チュートリアルに従いました: http://leto.net/writing/nasm.php。
HelloWorld を画面に出力する簡単なプログラムを作成して実行できます。上記のリンクの次の段落に混乱しています。
mov eax,5 ; the syscall number for open()
So where do find out all of the semantics for all of the various system calls?
Well first, the numbers are listed in asm/unistd.h in Linux, and sys/syscall.h
in the *BSD's
これは、eax レジスタに 5 がある場合、open のシステム コールであることを意味していると思います。残りのシステムコールはどこかに文書化されていますか?
Windows 7 PC で NASM を使用しています。