⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcp_det.asm

📁 80386单片机
💻 ASM
字号:
comment *
    VCP_DET.ASM
    Purpose:
    To detect if a VCPI host is is currently installed in machine.

    Author:
    Yousuf Khan, released to public domain

   To run VCP_DET you have link it with EXTFILE.ASM !
   (i.e. tlink /t vcp_det+extfile for Borland)       
*

        .model tiny

        .data
        cr_lf   equ     13,10
        yes     db      "VCPI driver found, exiting errorlevel 0",cr_lf,"$"
        no      db      "No VCPI driver, exiting errorlevel 255",cr_lf,"$"

        .code
extrn   vcpi_detect:near

        org     100h

start:
        call    vcpi_detect
        push    ax
        cmp     ax, 0
        jne     no_vcpi
        lea     dx, yes
        mov     ah, 9
        int     21h
        pop     ax
        jmp     short eop

no_vcpi:
        lea     dx, no
        mov     ah, 9
        int     21h
        pop     ax

eop:
        mov     ah, 4ch
        int     21h
        end     start

; EOF VCP_DET.ASM

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -