BootLoader 4
Posted: Mon Mar 08, 2010 8:20 pm
Hi,
I have a question. In the tutorial 6, the section where we only want to print out a message for our 2nd stage boot loader. I see this
My question is why do we have to ensure cs = ds? Do we always have to do this for the second stage bootloader?
Thanks
I have a question. In the tutorial 6, the section where we only want to print out a message for our 2nd stage boot loader. I see this
Code: Select all
;*************************************************;
; Second Stage Loader Entry Point
;************************************************;
main:
cli ; clear interrupts
push cs ; Insure DS=CS
pop ds
mov si, Msg
call Print
cli ; clear interrupts to prevent triple faults
hlt ; hault the system
Thanks