AH = 2Bh - SET SYSTEM DATE
Entry: CX = year (1980-2099) DH = month DL = day
Return:
Note: DOS 3.3+ also sets CMOS clock
MOV AH,2BH INT 21H
.data date db 04h month db 05h year dw 2011h .code ... ... mov cx,year mov dh,month mov dl,date mov ah,2bh int 21h ... ... end
Return: AL = 00 successful FFh invalid date, system date unchanged Note: DOS 3.3+ also sets CMOS clock