Re: [fpc-pascal]high performance counter for dos/tp7

2004-03-20 Thread Marco van de Voort
> So a computer calling an interrupt routine a million times (for microsecond > accuracy) that does not seem like a good idea performance wise. > > Also calculating the control word (?) can be inaccurate (?): control_word > := $1234DD div frequency; ( ??? what about the remainder ??? ) > > So I

[fpc-pascal]high performance counter for dos/tp7

2004-03-20 Thread Harald Houppermans
Hello, I thought I give this newsgroup a try since you guys seem to know so much about all this stuff :D. Windows has a high performance counter api. With this api one can read the tick frequency and the tick count. Dividing the tick count by the tick frequency gives the time that has past or a

Re: [fpc-pascal]Modifying cpu registers while in turbo pascal interrupt routine ?

2004-03-20 Thread Marco van de Voort
> > > A 286 is in fact a 32 bit cpu... limited to 32 mb ram. > > > > No, the 286 is a 16 bit cpu with a 24 bit address bus (so it can > > address 16MB ram, not 32MB). The width of the address bus is > > independent of the size of the registers of a cpu. > > Hmm indeed I was put off by masm's tutor

Re: [fpc-pascal]Modifying cpu registers while in turbo pascal interrupt routine ?

2004-03-20 Thread Harald Houppermans
- Original Message - From: "Jonas Maebe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 20, 2004 2:30 PM Subject: Re: [fpc-pascal]Modifying cpu registers while in turbo pascal interrupt routine ? > > On 20 mrt 2004, at 03:21, Harald Houppermans wrote: > > > I read at

Re: [fpc-pascal]Socket() call broken in 1.9.3 CVS?

2004-03-20 Thread Marco van de Voort
> I pulled in 1.9.3 from CVS yesterday. When I recompiled some code I have > been working on I found my program crashed when creating a socket. The > program fails with no error. It just exits. I created a test program > with just the socket call and it also fails the same way. Here is the

Re: [fpc-pascal]Socket() call broken in 1.9.3 CVS?

2004-03-20 Thread Michael . VanCanneyt
On Sat, 20 Mar 2004, Lloyd B. Park wrote: > I pulled in 1.9.3 from CVS yesterday. When I recompiled some code I have > been working on I found my program crashed when creating a socket. The > program fails with no error. It just exits. I created a test program > with just the socket call

Re: [fpc-pascal]Modifying cpu registers while in turbo pascal interrupt routine ?

2004-03-20 Thread Jonas Maebe
On 20 mrt 2004, at 03:21, Harald Houppermans wrote: I read at some sites, set test 8086 to zero, some other sites say set 8086 to one. The documention of TP says: zero is for 8086, one is for 80286, and two is for 80386. A 286 is in fact a 32 bit cpu... limited to 32 mb ram. No, the 286 is a 1

[fpc-pascal]Socket() call broken in 1.9.3 CVS?

2004-03-20 Thread Lloyd B. Park
I pulled in 1.9.3 from CVS yesterday. When I recompiled some code I have been working on I found my program crashed when creating a socket. The program fails with no error. It just exits. I created a test program with just the socket call and it also fails the same way. Here is the code: