145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Skelix by Xiaoming Mo (xiaoming.mo@skelix.org) 245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Licence: GPLv2 345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org .text 445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org #.globl start 545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org .code16 645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgstart: 745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org jmp code 845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmsg: 945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org .string "Hello World!\x0" 1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcode: 1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movw $0xb800,%ax 1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movw %ax, %es 1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org xorw %ax, %ax 1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movw %ax, %ds 1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movw $msg, %si 1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org xorw %di, %di 1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cld 1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movb $0x07, %al 2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org1: 2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cmpw $0, (%si) 2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org je 1f 2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org movsb 2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org stosb 2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org jmp 1b 2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org1: jmp 1b 2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.org 0x1fe, 0x90 2845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org.word 0xaa55 2945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 30