ouyesmxl/HelloOS — Issue #1: Wrong CS:IP assumption
Author: Shikhin
Created: 2012-02-20 07:55:01+00:00
State: open

The bootloader assumes that the CS:IP pair is 0x0000:0x7C00 which is not the case. Quoting my own code,

jmp 0x0000:Main ; Some BIOS' load the bootloader at 0x0000:0x7C00, while others
; load it at 0x07C0:0x0000. Do a far jump to reload this value
; to a standard 0x0000:0xIP.

A far jump at the beginning of the bootloader might do the trick.