2018-12-04 09:46:27 +00:00
|
|
|
/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-hello-world */
|
|
|
|
|
|
2015-09-06 23:16:58 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
BEGIN
|
2018-05-06 14:33:33 +01:00
|
|
|
DBG
|
2015-09-06 16:17:39 +02:00
|
|
|
mov $msg, %si
|
|
|
|
|
mov $0x0e, %ah
|
|
|
|
|
loop:
|
|
|
|
|
lodsb
|
|
|
|
|
or %al, %al
|
|
|
|
|
jz halt
|
|
|
|
|
int $0x10
|
|
|
|
|
jmp loop
|
|
|
|
|
halt:
|
|
|
|
|
hlt
|
|
|
|
|
msg:
|
|
|
|
|
.asciz "hello world"
|