タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

unixとasmに関するyamanetoshiのブックマーク (2)

  • Introduction to UNIX assembly programming : Assembly-Intro.html

    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1; with no Invariant Sections, with no Front-Cover Texts, and no Back-Cover texts. Abstract This document is intended to be a tutorial, showing how to write a simple assembly program in several UNIX operating systems on the IA-32 (i386) platform. Included material

  • Hello, world! - Plan9日記

    先日、UNIX V1が動いたという話を書いたが、現実逃避でHello, world!書いてみた。もちろんPDP-11アセンブリでである。 r0にstdoutのファイル記述子を入れてwriteシステムコールを呼び出す。文字列のアドレスと文字数は、sys命令の後に列挙する。$は即値で、14の後のピリオドは10進数を意味する(デフォルトは8進数)。ちなみに、a.outのサイズは68バイト。 # ed hello.s ? a mov $1,r0 sys write; 1f; 14. sys exit 1: <hello, world!\n> . w 64 q # as hello.s I II # ./a.out hello, world!ところで、エディタはedしかないので頑張れ。私もedでのプログラミングははじめてだった。catを使う手もあるけど... また、ユーザランドコマンドのイディオムと

    Hello, world! - Plan9日記
  • 1