Ja, das erinnert mich an etwas, dass ich Ende 1999 für meinen Rechner schreiben musste. ![]()
Ausschnitt:
Code
...
restart:
mov ah,004h ; get current BIOS date
int 01Ah ;
lea bx,base+date ;
mov al,0[bx] ; fixed year
cmp dh,1[bx] ; month < last month ...
jge sameyear ;
add al,1 ; ... => new year
daa ;
mov 0[bx],al ; store year
sameyear:
mov 1[bx],dh ; store month
mov ch,020h ; 20th century
mov cl,al ; current year
mov ah,005h ;
int 01Ah ; rewrite BIOS date
...
Alles anzeigen