smalltalk-tng
view experiments/assembly/tiny.S @ 321:c4a0718c2d3c
Sketch of dependencies
| author | Tony Garnock-Jones <tonygarnockjones@gmail.com> |
|---|---|
| date | Sat Oct 08 15:36:03 2011 -0400 (7 months ago) |
| parents | 962e73581f6a |
| children |
line source
1 #include <sys/syscall.h>
2 .text
3 #include "elfheader.S"
4 .globl _start
5 _start:
6 movl $1, %ebx
7 movl $hello, %ecx
8 movl $hellolen, %edx
9 movl $__NR_write, %eax
10 int $0x80
12 movl $0, %ebx
13 movl $__NR_exit, %eax
14 int $0x80
16 hello:
17 .ascii "Hello, world!\n"
18 hellolen = . - hello
20 fileend:
21 .set memsize, fileend - origin
