home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
batutl
/
batutl2.arc
/
CHKDATE.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-04-16
|
521b
|
28 lines
TITLE CHKDATE 7-3-85 [4-16-88]
LF EQU 0AH
CR EQU 0DH
;
;INITIAL VALUES : CS:IP 0000:0100
; SS:SP 0000:FFFF
CodeSeg SEGMENT
ASSUME DS:CodeSeg, SS:CodeSeg ,CS:CodeSeg ,ES:CodeSeg
ORG 100H
ChkDate proc
MOV AH,2AH ;get system date
INT 21H
MOV AX,4C00H ;assume date is ok
CMP CX,07BCH ;year=1980?
JNZ Exit ; nope, ok
CMP DX,0101H ;1 Jan?
JNZ Exit ; nope, ok
inc al ;return Errorlevel = 1
Exit: INT 21H
INT 20H ;return to DOS/batch file
ChkDate endp
CodeSeg ENDS
;
END ChkDate