http://git.dujemihanovic.i2p?p=nameless-os.git;a=commitdiff;h=dad65146188909b9568ed39b3b3fbc5e88e158c3;hp=c29b9d737fde3b6037aacc95cc6ff4f5fbc63d46;ds=inline
, 0xd, 0xa, 0 diff --git a/boot/x86/mbr.s b/boot/x86/mbr.s new file mode 100644 (file) index 0000000.. 8089b2f --- /dev/null +++ b/ boot/x86/mbr.s @@ -0,0 +1,185 @@ +; x86 bootloader for nameless-os, MBR portion + +bits 16 +cpu 686 +org 0x600 + +_start: + cli + ; set up segment registers + xor ax, ax + mov ds, ax + mov es, ax + mov ss, ax + mov sp, 0x7c00 ; just under the soon-to-be-loaded VBR, should be more than sufficient space +...