Files
x86-bare-metal-examples/bios_hello_world.S
2018-12-04 09:46:27 +00:00

18 lines
266 B
ArmAsm

/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-hello-world */
#include "common.h"
BEGIN
DBG
mov $msg, %si
mov $0x0e, %ah
loop:
lodsb
or %al, %al
jz halt
int $0x10
jmp loop
halt:
hlt
msg:
.asciz "hello world"