Sign in to follow this  

x86 assember and "GetSystemTime()"

This topic is 4759 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

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

		POP	CX
		POP	AX

		RET
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

This topic is 4759 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this