1 # Skelix by Xiaoming Mo (xiaoming.mo (a] skelix.org) 2 # Licence: GPLv2 3 .text 4 #.globl start 5 .code16 6 start: 7 jmp code 8 msg: 9 .string "Hello World!\x0" 10 code: 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 20 1: 21 cmpw $0, (%si) 22 je 1f 23 movsb 24 stosb 25 jmp 1b 26 1: jmp 1b 27 .org 0x1fe, 0x90 28 .word 0xaa55 29 30