home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
library
/
lib4a86
/
lib
/
clock.lib
< prev
next >
Wrap
Text File
|
1992-02-02
|
938b
|
75 lines
#IF !LIB4A86
#ELSE
#IF !INTERN_LIB4A86_S
INTERN_LIB4A86_S EQU 01
JMP START
#ENDIF
#ENDIF
CLOCK$_BUFFER STRUC [BX]
CLOCK$_TAGE DW ?
CLOCK$_MINUTEN DB ?
CLOCK$_STUNDEN DB ?
CLOCK$_SEK100 DB ?
CLOCK$_SEKUNDEN DB ?
ENDS
CLOCKDEVICENAME DB 6,'CLOCK$',0
READCLOCKDEVICE:
PUSH BX
MOV BH,03FH
JMP >L1
WRITECLOCKDEVICE:
PUSH BX
MOV BH,040H
L1:
PUSH DS,DX
MOV DS,CS
MOV DX,OFFSET CLOCKDEVICENAME+1
MOV AX,03D02H
INT 021H
POP DX,DS
JC >L8
XCHG AX,BX
PUSH CX
MOV CX,01H
INT 021H
POP CX
PUSHF
PUSH AX
MOV AH,03EH
INT 021H
POP AX
POPF
L8:
POP BX
RET
#IF !INTERN_CMARK0
INTERN_CMARK0 EQU 01H
INTERN_CMARK1:
PUSH BP
MOV BP,SP
MOV BX,06H
SUB CH,[BP+SI]
SUB AH,[BX+SI]
DEC SP
DEC CX
INC DX
XOR AL,041H
CMP B[02820H],DH
INC BX
SUB W[BX+SI],SP
INC DX
CS AND B[BP+DI+043H],DL
DEC AX
INC BP
DEC BP
DEC BP
INC BP
PUSH DX
AND B[BP+SI],CH
SUB CH,[BP+SI]
POP DX
MOV SP,BP
POP BP
RET
#ENDIF