qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VeriCop
   Example  Back  Contents  Index
──────────────────────────────────────────────────────────────────────────────
 
;* VeriCop - Checks for coprocessor.
;*
;* Shows:   BIOS Interrupt - 11h (Get Equipment Information)
;*
;* Params:  None
;*
;* Return:  Short integer, 1 for yes or 0 for no
 
VeriCop PROC
 
        int     11h                     ; Check peripherals
        test    al, 10b                 ; Coprocessor?
        mov     ax, 0                   ; Assume no, don't alter flags
        jz      exit                    ; No?  Done
        inc     ax                      ; Yes?  Set to 1
exit:   ret
 
VeriCop ENDP
                                    -♦-