displaying boot drive?
Posted: Fri Jan 02, 2004 12:00 am
I'm trying to get my OS to display what drive it is booting from at startup. In my boot routine I have this:
; display what drive we're booting from
MOV SI,booton
CALL putstr
MOV SI,[bsBootDrv]
CALL putstr
booton is: booton DB 'BOOTING ON: ',0
[bsBootDrv] is defined at the start like this: bsBootDrv DB 0
putstr is my routine for printing SI to screen.
When I boot my os it gives me this:
BOOTING ON: n(upside-down U)BOOT:
(then it sits there reading the floppy)
it should look like this:
BOOTING ON: 0
BOOT: GOOD
(procedes to load kernel)
It worked before I put in this "booting on:" bit in. Does anyone know how I could fix this?
; display what drive we're booting from
MOV SI,booton
CALL putstr
MOV SI,[bsBootDrv]
CALL putstr
booton is: booton DB 'BOOTING ON: ',0
[bsBootDrv] is defined at the start like this: bsBootDrv DB 0
putstr is my routine for printing SI to screen.
When I boot my os it gives me this:
BOOTING ON: n(upside-down U)BOOT:
(then it sits there reading the floppy)
it should look like this:
BOOTING ON: 0
BOOT: GOOD
(procedes to load kernel)
It worked before I put in this "booting on:" bit in. Does anyone know how I could fix this?