Skip to content

Instantly share code, notes, and snippets.

@ghaiklor
Created October 30, 2017 17:32
Show Gist options
  • Save ghaiklor/bd41fa06d0af6af1adf59e13e12fee7a to your computer and use it in GitHub Desktop.
Save ghaiklor/bd41fa06d0af6af1adf59e13e12fee7a to your computer and use it in GitHub Desktop.
Full implementation for loader
extern void loader_main() {
for (int i = 0; i < 26; i++) {
char c = 0x41 + i;
asm(
"mov %0, %%al;"
"mov $0x0E, %%ah;"
"int $0x10;"
:
: "r" (c)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment