;*************************************************************************** ; * ; Copyright (C) 1983,1984 by Microsoft Inc. * ; * ;*************************************************************************** ;*************************************************************************** ; * ; Header file for IBM/PC timer device driver. Contains all machine * ; specific constant and data structure definitions. * ; * ;*************************************************************************** .xlist include cmacros.inc ifdef NEC_98 include windefs.inc else ; NEC_98 ; include windefs.inc endif ; NEC_98 .list ; picked off romstuff.inc DSEG equ DATA doffset EQU ; Approximate value of timer tic in milliseconds * 1000. ifdef NEC_98 res_low EQU 25000 else ; NEC_98 res_low EQU 54925 endif ; NEC_98 res_high EQU 0 ; equates for disk status REMOVEABLE equ 2 FIXED equ 3 REMOTE equ 4 ; Offset of Single Diskette indicator from beginning of Bios Data Area, 400h SingleDrive equ 104h ; Timer structure tiblock STRUC tirate DW ? ; -1 means not used, 0 means call as fast as possible ticount DW ? ; -1 means end of table. tiproc DD ? ; far proc to call. tiblock ENDS ifdef NEC_98 ; ; DELAY MACRO FOR 80386 ; This macro is defined in SYSMAC.INC(V23 ROM BIOS) <880203 ver2.1 ; DELAY MACRO DEV,ACT,MOD IFIDN ,<8237> IFIDN , JMP SHORT $+2 ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN ,<> JMP SHORT $+2 ENDIF ENDIF IFIDN ,<8253> IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN ,<> REPT 2 JMP SHORT $+2 ENDM ENDIF ENDIF IFIDN ,<8255> IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN ,<> REPT 2 JMP SHORT $+2 ENDM ENDIF ENDIF IFIDN ,<8259> IFIDN , JMP SHORT $+2 ENDIF IFIDN , ENDIF IFIDN , JMP SHORT $+2 ENDIF IFIDN , ENDIF IFIDN ,<> JMP SHORT $+2 ENDIF ENDIF IFIDN ,<8251> IFIDN , IFIDN , REPT 4 JMP SHORT $+2 ENDM ENDIF IFIDN , REPT 5 JMP SHORT $+2 ENDM ENDIF IFIDN , REPT 10 JMP SHORT $+2 ENDM ENDIF ENDIF ENDIF IFIDN ,<765> ENDIF IFIDN ,<7220> IFIDN , IFIDN , REPT 4 JMP SHORT $+2 ENDM ENDIF IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF ENDIF IFIDN , IFIDN , REPT 3 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF ENDIF IFIDN , IFIDN , REPT 4 JMP SHORT $+2 ENDM ENDIF IFIDN , REPT 2 JMP SHORT $+2 ENDM ENDIF ENDIF IFIDN , IFIDN , REPT 3 JMP SHORT $+2 ENDM ENDIF IFIDN , JMP SHORT $+2 ENDIF ENDIF ENDIF IFIDN ,<7201> IFIDN , JMP SHORT $+2 ENDIF IFIDN , JMP SHORT $+2 ENDIF ENDIF IFIDN ,<7210> IFIDN , JMP SHORT $+2 ENDIF IFIDN , JMP SHORT $+2 ENDIF ENDIF IFIDN ,<4990> REPT 3 JMP SHORT $+2 ENDM ENDIF ENDM ; dummy delay DELAY2 MACRO CNT local l1 push cx mov cx, CNT l1: out 5fh, al loop l1 pop cx ENDM endif ; NEC_98