The following is a sample of assembly code for the Intel 8086 CPU:
+
The following is a sample program written in assembly for an ARM [[CPU]] running Linux kernel with [[ARM EABI]] system call conventions. The program will print "hello world" to standard output.
+
<pre>
+
# Arguments are passed in registers r0-6, the system call number in r7
−
; The purpose of this code is to output a new line
+
# Write msglen bytes starting from address msg to standard output (file descriptor 1)