My simplest "hello world" assembly code can compile and link. But everytime I tried to run it, just got system error "The program tried to execute an invalid instruction". First, I thought it's because 386 up CPUs run under Protected Mode in default and I need to use DPMI...
I am writing a Win32 console application to call a DOS interrupt handler. When I wrote inline assembly code to call "int 31h" with the interrupt number in BX and 0300 in AX, a General Protection Fault came out and the system crashed. Can anybody tell how to fix that?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.