Fatal exception when calling interrupts using inline assembler.
Posted on 1998-06-22
I am trying to call int 13h functions using the inline assembler with MS Visual C++ 4. However, when I run a progam which calls the interrupt, it crashes, showing that infamous blue screen with a FATAL EXCEPTION 0D error message.
Take the following example. I am calling the "GET STATUS OF LAST OPERATION" function. My documentation states that AH should be loaded with 01h and DL with the drive number (01h for drive A). So here goes...
mov ah, 01h
mov dl, 01h
But when the code fragment is run, all I get is a fatal exception 0D. What should I be doing to make it work and get rid of the fatal exception? I've tried this technique out with several different interrupt calls, but still get the same problem.