先来一段简单的代码,这段代码先的作用是在屏幕上打印出紫色的hello word!
[xxx@host xxx]$ cat boot.s
#######################################################
.text
.globl _start
.code16 #指明生成16位的代码,很关键
_start:
jmp code
msg:
.string "Hello world!\0"
code:
##########################ÿ