delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/24/15:15:14

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Jason Mills <jmills AT cs DOT mun DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Timer inside interrupt handler
Date: Sun, 24 Oct 2004 16:16:35 -0230
Organization: Memorial University of Newfoundland
Lines: 32
Message-ID: <clgtac$qlj$1@coranto.ucs.mun.ca>
References: <clee5f$j5s$1 AT coranto DOT ucs DOT mun DOT ca> <01c4b948$Blat.v2.2.2$f034ea00 AT zahav DOT net DOT il> <clgi45$pd8$1 AT coranto DOT ucs DOT mun DOT ca> <417bd729$0$173$cc7c7865 AT news DOT luth DOT se>
NNTP-Posting-Host: jmills.ccore.mun.ca
Mime-Version: 1.0
X-Trace: coranto.ucs.mun.ca 1098643596 27315 134.153.38.195 (24 Oct 2004 18:46:36 GMT)
X-Complaints-To: usenet AT coranto DOT ucs DOT mun DOT ca
NNTP-Posting-Date: Sun, 24 Oct 2004 18:46:36 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
X-Accept-Language: en-us, en
In-Reply-To: <417bd729$0$173$cc7c7865@news.luth.se>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Martin Str|mberg wrote:

> Jason Mills <jmills AT cs DOT mun DOT ca> wrote:
> 
>>I did come across the following on
>>the newgroup. Does it implement what you suggest?
> 
> 
> Yes, but...
> 
> 
>>   Convert the real mode segment:offset pair to a linear address offset
>>   (relative to _dos_ds) like this:
> 
> 
>>   0x40 * 16 + 0x6c = 0x460
> 
> 
> Looks like there's some error here. 0x40 * 16 + 0x6c = 0x46c. Note
> "0x46" and a "c". Or the left hand side should read "0x40 * 16 +
> 0x60".
> 
> 
> Right,
> 
> 					MartinS

You are correct. I looked at the source for uclock(), which also
uses the bios tick counter (I found out after posting earlier),
0x46c is the require offset.

Jason

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019