Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Created August 2, 2019 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donpdonp/c615aa58ff8f408410daf4477de80b1f to your computer and use it in GitHub Desktop.
Save donpdonp/c615aa58ff8f408410daf4477de80b1f to your computer and use it in GitHub Desktop.
/* 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 "\n#pdxtech leet haxorz\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment