这段程序为什么运行时会出错
    _asm{
          mov ax,01
          int 10h
         }  为什么一调用INT 10H 编译通过,运行会死机。

解决方案 »

  1.   

    你用了_asm定義那麼.
        short n; 
        unsigned short addr = 200; 
        ...... 
        __asm{ 
         mov dx, addr 
         in ax, dx 
         mov n, ax 
        } 
    你用了10h這個地址可能是機器用到的一個運行程序的地址.一個無法去訪問的地址
      

  2.   

    VC中对有些中断调用是分级的,分为ring0,ring3,ring3层可以直接在应用程序中调用,ring0调用要受保护的。
      

  3.   

    你看看int 10h中断的 AH BL等参数,没有mov ax ,01这个参数的.