* cormen book
[mascara-docs.git] / i86 / mtx-16-bit / mtx / samples / LAST / USER / u.s
blob8b9038829764679e497fa724f2cda9a9c65c97d1
1 .globl begtext, begdata, begbss ! needed by linker
3 .globl _getcs
4 .globl _main0, _syscall, _exit
6 .text ! these tell as:
7 begtext: ! text,data,bss segments
8 .data ! are all the same.
9 begdata:
10 .bss
11 begbss:
12 .text
14 export auto_start ! Need this to override bcc's crt0.o
15 auto_start:
17 start:
19 call _main0 ! NOTE: call main0() in crt0.c, which calls main()
21 push #0
22 call _exit ! exit(0) to die in MTX kernel
24 _getcs:
25 mov ax, cs
26 ret
28 _syscall:
29 int 80
30 ret