Beruflich Dokumente
Kultur Dokumente
of INT 15h
The functions OOh and Olh of INT lah are related to the DOS-internal system clock only, but
not to the MC146818 real-time clock.
The access to the real-time clock is carried out by functions 02h to 07h of INT lah.
The functions 83h and 86h of INT 15h set time intervals.
This function returns the number of timer ticks since 0:OO a.m. If more than 24 hours have
elapsed since power-up, the value of AL is different from 0. In DX:CX the function returns the
high and low timer values, respectively, at 40:6eh and 40:6ch in the BIOS data area and the timer
overflow flag 40:70h in register AL. After a call to this function, the timer overflow flag will be
cleared.
This function OOh sets the number of timer ticks since 0:OO a.m. The function stores the high and
low timer values, respectively, which are passed in DXCX into 40:6eh and 40:6ch in the BIOS
data area and resets the timer overflow flag 40:70h.
This function reads the time from the real-time clock chip MC146818.
AH 02h OOh
CL minute*)
CH hour*’
DH second*’
Carry error if < > 0
This function sets the time of the real-time clock chip MC146818.
This function reads the date from the CMOS RAM in the real-time clock chip MC146818.
AH 04h
CL year*’
CH century*’
DL day*’
DH month*’
Carry error if < > 0
AH 07h
Carry error If < > 0
E.2 Wait Functions 83h and 86h of BIOS Interrupt INT 15h
i Function 83h - Set or Clear Wait Time Interval
t
If AL = OOh this function sets the high bit of a byte in main memory at a user-defined address
L when the programmed time interval has expired. After a call to this function, the calling pro-
gram continues at once. After expiry of the wait time interval, the real-time clock issues an
interrupt. The wait time interval has to be specified in units of one microsecond, but because
1154 Appendix E
of the usually programmed real-time clock frequency of 1024 Hz the actual time resolution is
about 976 ps, that is, l/1024 Hz. If AL = Olh the active wait time is disabled.
AH 83h
AL Olh
AH 86h
cx time interval (high)”
DX time Interval (low)”
Carry error if < > 0
” I” lls