Here's the code:
.386 ;target for maximum compatibility
.model small,stdcall ;model
.code
main:
int 20h
END main
Result: http://img705.imageshack.us/img705/3738/resultom.png
"test.exe has stopped working" - always right when it reaches the interrupt.
This is the interrupt I'm trying to use. It should simply exit the program. Others I've tried include character input/output, etc.. Nothing works.
I'm on windows 7, using masm32 with the WinAsm IDE.
There are so many cool things it seems I should be able to do with interrupts... however, it crashes whenever I try to use an interrupt - always the same way.
This seems related and possibly useful: DOS Interrupt in masm x86 assembly crashing
...but I haven't really been able to figure anything out from it.
Any suggestions?