Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-06

Interrupt 08

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Beisel

Who can help?

Compiler: FPC Ver 1.0.4
IDE: FP IDE Ver 0.9.1.
Target: Go32V2
OS: Pure DOS + cwsDPMI (no Windows, no Linux, just realy pure DOS)

I want to hook timer interrupt Int08. I have to use the hardware interrupt 08
instead of software interrupt 1C, since the timer frequency ist increased
from 18,2 to 1000 Hz. Therefore the interrupt must be chainded to the old interrupt service routine every 55 times.

I tried this in several variations but the only result are system crashes
in several variations.

Who can help with a running example?

Regards Peter

Reply by email

Balogh, Karoly (Charlie/iNQ
to Peter Beisel

Hi,

Peter Beisel wrote 7 lines
I want to hook timer interrupt Int08. I have to use the hardware interrupt 08 instead of software interrupt 1C, since the timer frequency ist increased from 18,2 to 1000 Hz. Therefore the interrupt must be chainded to the old interrupt service routine every 55 times. I tried this in several variations but the only result are system crashes in several variations.

Yes, i also had crashes with linking the old IRQ code into the new one. So i wrote a new protected mode routine to update the RTC at 18.2hz. The RTC update routine is based on a real BIOS source, and already tested with a lot of systems, and works OK.

Who can help with a running example?

Check out my page:
http://scenergy.dfmk.hu/inqcoders/

I've wrote a moduleplayer for FPC, but it's timer system is available and works without the rest of the player too. And it works not only under DOS, but Windows DOS task, Linux dosEmu, and OS/2 DOS Session too.

The timer unit has its own API, which allows you to run a lot of timers at different frequency, but still updates the it still not satisfy your needs, you can write your own, based on it.

<commercial presentation>

New version of my moduleplayer (ISS) mentioned above, coming soon, with OS/2(!) support, including DART (softwaremixing), and with support for the native GUS driver API. So you can play modules up to 1MB using your GUS, and up to 8MB using your AMD Interwave-based card's wavetable. Also with a lot of other fixes (especially in the Sound Blaster driver for DOS) and enhancements. (Note for Winblows users: DirectSound support is coming too, stay tuned...)

With this new version, i'll be proud to present the first working multi-platform XM moduleplayer written in Free Pascal. (Or in any Pascal-variant ever?) Also, it's the first Free Pascal program, which capable to use OS/2's multimedia subsystem.

</commercial presentation>

Bye,

Charlie/iNQ .:%[ Cybernetic Hydraulic Android Responsible for ]%:. .:%[ Logical Infiltration and Exploration ]%:. .:%[ Member of TeamOS/2 Hungary ]%:. .:%[ Member of Hungarian Amiga User Group ]%:.

Reply by email

Matti Hamalainen
to Balogh, Karoly (Charlie/iNQ
Karoly wrote 8 lines
<commercial presentation> With this new version, i'll be proud to present the first working multi-platform XM moduleplayer written in Free Pascal. (Or in any Pascal-variant ever?) Also, it's the first Free Pascal program, which capable to use OS/2's multimedia subsystem. </commercial presentation>

My congratulations ;) Though, it certainly will not be the last :D

=- ccr/TNSP^pWp
] | http://www.tnsp.org/
] Show me your "realtime raytracer in Java"
] and I'll show you my CBM 8032, 2 MHz!

Reply by email