Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!netcom!rcb From: rcb@netcom.UUCP (Roy Bixler) Newsgroups: comp.sys.atari.st.tech Subject: using evnt_timer() with GCC 1.37.1 Message-ID: <13154@netcom.UUCP> Date: 3 Sep 90 18:27:11 GMT Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Lines: 18 I have just ported my first program which uses Turbo C's graphics to GEM and the Atari ST. Everything works except for when I call evnt_timer(). I have checked out 3 different sources on the parameter usage and they all have a different story. Abacus' GEM Programmer's Reference says that evnt_timer() takes two 32-bit parameters, which make up a 64-bit millisecond delay (the first parameter is the low-order 32 bits ...). Tim Oren's Profession GEM series column 12 specifies that the millisecond delay is a 32-bit value passed as 2 16-bit parameters. The aesbind.h file that comes with GCC 1.37.1 says there is one 32-bit parameter. I have tried all of these and the result is always that my timer waits a lot longer than I would like (i.e. the machine seems to lock up). If I reverse the order of parameters (where there are 2 parameters, of course), there is no delay. Can anyone help? Roy Bixler netcom!rcb@apple.com