initial commit: a mess of assembly code
[fmap.git] / x86_64_sse2_x87 / fasm / examples / x86 / multiseg.asm
blobbe9030d3b8ab32852be9aaeca10a8e5cf75a9b78
2 include '8086.inc'
3 include 'format/mz.inc'
5 entry code:start ; program entry point
6 stack 100h ; stack size
8 segment code
10 start:
11 mov ax,data
12 mov ds,ax
14 mov dx,hello
15 call extra:write_text
17 mov ax,4C00h
18 int 21h
20 segment data
22 hello db 'Hello world!',24h
24 segment extra
26 write_text:
27 mov ah,9
28 int 21h
29 retf