Chapter 8 - Using MS-DOS
PL-5910 Series User Manual
8-43
INT 1Ah Setting/Reading Time and Date
Operation
Input
Output
Reading clock
AH = 01h
CX =
DX =
AL =
Significant 16 bits of current clock data
Insignificant 16 bits of current clock data
Overflow flag on 24-hour system
Setting clock
AH =
CX =
DX =
01h
Significant 16 bits of clock data
Insignificant 16 bits of clock data
Reading time
AH = 02h
CH =
CL =
DH =
DL =
CY =
Hours (BCD)
Minutes (BCD)
Seconds (BCD)
Summertime option (0 or 1)
End status
0: Successfully completed
1: Error
Setting time
AH =
CH =
CL =
DH =
DL =
03h
Hours (BCD)
Minutes (BCD)
Seconds (BCD)
Summertime option (0 or 1)
Reading date
AH = 04h
CH =
CL =
DH =
DL =
CY =
Western calendar (Year given as 2-digit
BCD, significant 2 bits: 19 or 20)
Year (BCD)
Month (BCD)
Day (BCD)
End status
0: Successfully completed
1: Error
Setting date
AH =
CH =
CL =
DH =
DL =
05h
Western calendar (Year given as 2-
digit BCD, significant 2 bits: 19 or
20)
Year (BCD)
Month (BCD)
Day (BCD)
Setting alarm
AH =
CH =
CL =
DH =
06h
Hours (BCD)
Minutes (BCD)
Seconds (BCD)
CY = End status
0: Successfully completed
1: Error
Clearing alarm
AH = 07h
INT 1Ah Setting/Reading Time and Date
Operation
AX=0800h
AH=0: Successfully Completed
BL=0:OFF
1: Error
1:ON
Display ON/OFF
(Including backlight)
Input
Output