At this website , I find that the year in CMOS RAM is stored in just one byte.

It is known that one byte contains only from 0 to 255, so I am writing this code to find out what storage 09H is:
assume cs:code,ss:stack
stack segment
db 64 dup (0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,64
mov al,09H
out 70H,al
in al,71H
mov ah,4CH
int 21H
code ends
end start
I get a return value of 17H from port 71H, so does that mean that CMOS RAM stores the year on 1994 + offset value?
If so, what does number 1994 mean? In the future, how does CMOS RAM store a year over 2249 (1994 + 255)?
source
share