Im rewriting my bootloader for better support of FAT12,
allowing me to create a relocatable kernel for my OS.
Yet, this ones got me stumped. I know / hope its something
simple.
Here is a code snipplet:
Code: Select all
;**** with sti, prints alot of garbage; without sti prints nothing??
sti ; enable interrupts
push ds
mov dl,[bsBootDrv] ; reset controller
xor ax,ax
int 0x13
pop ds
hlt ; halt for testing
resets the floppy controller. I cleared the interrupts, and have to
be able to re enable the interrupts in order to use int 13h.
> Im in 16bit real mode, so int 13h should be okay.
> bsBootDrv is set to DL at the start of the code to store the
current drive number.
> Nothing here should print anything, yet it does--garbage.
What can possibly cause something like this?
(btw, I switched to using VFD and PARTCOPY--they are great!)
Any suggestions of any kind are very much appreciated.
Thanks