Jump to content
  • Advertisement
Sign in to follow this  

x86 assember and "GetSystemTime()"

This topic is 5043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is a quickie. For the record this code is in 16-bit mode.
GetTime:       ; returns seconds and ?? via DX

		MOV	AH, 2CH		
		INT	21H             ; CH=HH, CL=MM, DH=SS, DL=TT <-- ???


Does anybody know what "TT" is? ThousandThs would make thematic sense but logistically no...cause it's only a byte! 256 thousandths don't make a second. So is it Ticks? =( If anybody knows the answer it could save me an hour or two of experimentation (which is key as I'm down to crunch time with this little project). Thanks for your help =)

Share this post

Link to post
Share on other sites
Alright, I may actually be on the threshold of answering my own question.

I just found a page that documents a number of time-finding routines (based on the same interrupt, but with different settings for AH), and the ones that don't return months/years say that they return seconds/100 in DL. So maybe that's an accurate guess. =)

If anyone knows better, I'd appreciate the input.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!