You are here : assembly8086 INT 21HAH2BH

AH=2BH - 8086 INT 21H

AH = 2Bh - SET SYSTEM DATE

Entry: CX = year (1980-2099) DH = month DL = day

Return:

  • AL = 00 successful
  • FFh invalid date, system date unchanged

Note: DOS 3.3+ also sets CMOS clock

 


Syntax

MOV AH,2BH
INT 21H


Example

.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


Output / Return Value

Return:
    AL = 00 successful
    FFh invalid date, system date unchanged
Note: DOS 3.3+ also sets CMOS clock


Limitations


Alternatives / See Also


Reference