]>
wirehaze git hosting - BOS.git/blob - kernel/shell/clock.asm
ba211acf984030f3bbd0d55afae77dab68ba08b3
1 ;----------------------------------------------------------;
2 ; BOS kernel Christoffer Bubach, 2005. ;
3 ;----------------------------------------------------------;
5 ; functions to print date and time. ;
7 ;----------------------------------------------------------;
12 msg_time db 13,10,' Time: ',0
13 msg_date db 13,10,' Date: ',0
16 ;------------------------------------------------------;
17 ; date, prints current date and goes back to the ;
18 ; prompt. swedish i.e. normal :) format ;
19 ;------------------------------------------------------;
28 call get_cmos_data
; cmos.inc
30 mov al, [century
] ; cmos.inc
79 ;------------------------------------------------------;
80 ; time, prints current time and goes back to the ;
82 ;------------------------------------------------------;
91 call get_cmos_data
; cmos.inc
92 mov al, [hour
] ; cmos.inc