VC++6.0嵌入汇编程序INT 10H报错
我用Visual C++6.0写了个简单的输出Hello World!程序,在汇编代码里调用BIOS INT 10H中断的时候报这样的错误:Unhandled exception in hello.exe:0xC0000005:Access Violation.
请问怎么解决?
大致代码:
_asm { mov ax,0600h mov bh,0c1h mov cx,0000h mov dx,184fh int 10h } printf("Hello World!\n");