Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make simple Timer programe

Status
Not open for further replies.

tictic

Programmer
May 16, 2005
1
ET
im newbabe for assembly plz help. i want simple source code that can display time in hh:mm:ss format. even it is ok if the time is not displyed. i dont have any idea how to do it.

Thanks in Advance.
 
You can ask DOS what the time is by using function 2Ch:

mov ah,2Ch
int 21h

after this call, the following values are returned:

ch = hour.
cl = minute.
dh = second.
dl = 1/100 seconds.

you can then add code to display these values to your liking.
good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top