Jump to another file with bootloader
Posted: Sat Mar 24, 2012 12:03 pm
Hello,
I've been working on a hobby OS for a while, and, although I know probably enough C to make it work to an extent once I'm able to run C code, I'm relatively new to Assembly. The tutorials on the wiki seemed geared towards people who know a fair amount of assembly. I was wondering how I could 'jump' to another .bin file on the floppy disk.
I have the following line in my assembly file, which seems to indicate that I need to load the file at address 10000h: jmp 8:10000h
I'm just curious about this - it would probably help to be able to split up my bootloader, at least.
Thankyou for your time.
(P.S.: Is it necessary to create a GDT in real mode with my bootloader, or can I do that in my (protected mode) kernel?)
I've been working on a hobby OS for a while, and, although I know probably enough C to make it work to an extent once I'm able to run C code, I'm relatively new to Assembly. The tutorials on the wiki seemed geared towards people who know a fair amount of assembly. I was wondering how I could 'jump' to another .bin file on the floppy disk.
I have the following line in my assembly file, which seems to indicate that I need to load the file at address 10000h: jmp 8:10000h
I'm just curious about this - it would probably help to be able to split up my bootloader, at least.
Thankyou for your time.
(P.S.: Is it necessary to create a GDT in real mode with my bootloader, or can I do that in my (protected mode) kernel?)