--
We have only a few rules for posting to the FreeDOS mailing lists:
1. Don't swear. We don't want this mailing list to become what Usenet
turned into.
2. Keep posts on-topic. Remember, we set up this mailing list to
di
On Mon, 31 Dec 2018 19:17:15 +0100, stecdose wrote:
> For a later experiment project I want to capture parallel port data on a
> Pentium 3 which is very fast compared to a parallel port's speed.
> I thought about having an ISR capturing the data being called at capture
> rate, which should be somet
Just as an FYI, other people have tried to do the same kinds of things
(particularly with fast polling of a parallel port) with mixed results.
Some TSRs and device drivers, for example, don't work properly if the the clock
interrupt is reprogrammed. They use the counter you want to reprogram as
> Just out of curiosity, if I write something for a DOS4GW 32bit
> environment, would I choose the same way for having a timer or are there
> better ways for having a timer callback function?
the idea will be the same, the routines to use are different.
> For a later experiment project I want to
Thank you Mateusz, Matej already sent your code :)
This is very good example, clear and readable code, as short as possible
and the pitfalls are considered (calling dos-handler at 18.2...)
Thank you for making this! :)
Just out of curiosity, if I write something for a DOS4GW 32bit
environm
On Mon, 31 Dec 2018 17:06:14 +0100, stecdose wrote:
> How would I write a ISR in watcom c? Do you know of any programs making
> use of this, where I can look at?
This is how I did it:
https://sourceforge.net/p/dosmid/code/HEAD/tree/trunk/timer.c
Mateusz
--
FreeDOS is present on the USENET, too!
That's exactly, what I am looking for. It already handles *everything* I
have to care about. Calling the original interrupt handler at it's rate
- no matter of my programmed rate and servicing the interrupt
controller, setting up registers, how-to-ISR-in-watcom, ...
Thank you very much :)
Nil
On Mon, 31 Dec 2018 17:06:14 +0100, stecdose wrote:
How would I write a ISR in watcom c? Do you know of any programs making
use of this, where I can look at?
I think this file in DOSMid by Mateusz Viste is an example of what you
want:
https://sourceforge.net/p/dosmid/code/HEAD/tree/trunk/
As I had problems finding any examples, that I could adapt I am writing
here now.
I want to use the PIT (programmable interval timer,
https://wiki.osdev.org/Programmable_Interval_Timer ) in a C program for
DOS. I want to peridiocally update a user interface.
How would I write a ISR in watcom