Page 1 of 1

Date and time

Posted: Wed Oct 23, 2002 11:00 pm
by Billy
I need some source code to get the time and date in assembler.
Can you help me?

RE:Date and time

Posted: Wed Oct 23, 2002 11:00 pm
by Brill
If you're just setting up your date/time handling then you would need a hardware timer IRQ handler and read in the current date and time from the cmos.
If you want to know the time from an application or routine inside your os i would set up and nmi interrupt for the os to handle and return the time on a stack.