1# Skelix by Xiaoming Mo (xiaoming.mo@skelix.org)
2# Licence: GPLv2
3                .text
4                #.globl  start
5                .code16
6start:
7                jmp             code
8msg:
9                .string "Hello World!\x0"
10code:
11                movw    $0xb800,%ax
12                movw    %ax,    %es
13                xorw    %ax,    %ax
14                movw    %ax,    %ds
15
16                movw    $msg,   %si
17                xorw    %di,    %di
18                                cld
19                movb    $0x07,  %al
201:
21                cmpw    $0,     (%si)
22                je      1f
23                movsb
24                stosb
25                jmp     1b
261:              jmp     1b
27.org    0x1fe, 0x90
28.word   0xaa55
29
30