Bootsector succesfully loading stage 2 but not jumping to it
Posted: Wed Sep 09, 2009 7:55 am
I've been writing the bootsector for my OS, it loads a 2nd stage loaded to 0050:0000, and is supposed to jump to it.
I've verified that the code has been loaded to 0050:0000 using:
but neither
nor
transfers control to the 2nd stage loader.
Currently the 2nd stage loader just outputs a few characters using BIOS teletype (int 0x10, ah=0x0e), but these aren't coming up at all.
Interrupts are disabled throughout the code (well, cli is the first instruction and there are no cli/sti elsewhere in my code...)
This has got me completely stuck...
I've verified that the code has been loaded to 0050:0000 using:
Code: Select all
mov bx,0x0050
mov es,bx
mov ax,0x1301 ; BIOS output string, update cursore
mov bx,0x0007 ; Page 0, grey-on-black
mov cx,0x0040 ; 64 characters
xor dx,dx ; top left of screen
xor bp,bp ; es:bp = 0050:0000
int 0x10Code: Select all
jmp 0050:0000Code: Select all
push word 0x0000
push word 0x0050
retfCurrently the 2nd stage loader just outputs a few characters using BIOS teletype (int 0x10, ah=0x0e), but these aren't coming up at all.
Interrupts are disabled throughout the code (well, cli is the first instruction and there are no cli/sti elsewhere in my code...)
This has got me completely stuck...