my floppy drive keeps spinning

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
echristian

my floppy drive keeps spinning

Post by echristian »

I have a boot loader that works well with Christopher Giese's Protected Mode examples, but My floppy drive continues to spin if I comment out the following line.How can I stop my floppy from spinning and stay in 32 bit Protected mode?


;jmp REAL_CODE_SEL:do_16    ; switch to 16-bit protected mode on
                           ;your to real mode
jamethiel

RE:my floppy drive keeps spinning

Post by jamethiel »

Turn the motor off yourself by writing 0x00 to port 0x3f2.

--Jamethiel
echristian

RE:my floppy drive keeps spinning

Post by echristian »

i tried out 3f2,0x00h but it did not work. Is this what you meant for me to try?
Thanks for the help
echristian

RE:my floppy drive keeps spinning

Post by echristian »

thanks i got it now. I am a newbie

mov eax ,0000h
mov dx,03f2h
out dx,ax ;stop floppy motor
Post Reply