flat assembler
Message board for the users of flat assembler.
Index
> DOS > Good alternative for high-resolution timing? Goto page Previous 1, 2 |
Author |
|
LocoDelAssembly 18 Dec 2009, 03:13
Cas, take a look at this: http://atc.ugr.es/docencia/udigital/1203.html (Spanish, sorry the rest). Take in mind that the book talks about the old AT and PS/2 computers so things like "channel 1 used for memory refresh" are hardly true nowadays, but what it says about channels 0 and 2 is still true today.
|
|||
18 Dec 2009, 03:13 |
|
edfed 18 Dec 2009, 17:57
what is the execution time of a minimal periodic interrupt with PIT?
|
|||
18 Dec 2009, 17:57 |
|
Cas 20 Dec 2009, 13:40
Quote: > Another example... suppose I'm recording audio in CD resolution to a buffer Unfortunately, not yet, DOS386. I know some tricks, but I'm not as experience as you guys are at low level programming and my efforts to develop sound drivers for DOS are taking me a lot of time. I'm having a hard time trying to understand other people's code... people who're much better than I am. Most helpful I've found is MPXPLAY's source code, but it does not include recording. Still, I do have a computer at home with a SBAWE64 ISA, where I can work sound under pure DOS. When I say I have a concern about compatibility with non-pure DOS, I don't mean I want to support windows-dependent standards. That'd be the last thing I'd do! But I do believe I should try to make my applications compatible with DOSBox, as much as possible, so that they can be run in other OS's. Still, I wish most DOS users would have, as I do, a partition specially dedicated for FreeDOS, instead of virtualising the environment all the time. I do understand the complication this means, though. CMOS Real Time Clock is very interesting. How likely is it for a board to support it? I've been reading the DOC. I'll put it in my "RESEARCH" directory. Very good _________________ «Earth is my country; science is my religion» - Christian Huygens |
|||
20 Dec 2009, 13:40 |
|
revolution 20 Dec 2009, 14:10
Cas wrote: CMOS Real Time Clock is very interesting. How likely is it for a board to support it? And it is safe to say that any 32bit CPU on a commercially available mobo will definitely have the RTC. |
|||
20 Dec 2009, 14:10 |
|
DOS386 21 Dec 2009, 08:12
Quote: When I say I have a concern about compatibility with non-pure DOS, I don't mean I want to support windows-dependent standards. That'd be the last thing I'd do! But I do believe I should try to make my applications compatible with DOSBox, as much as possible, so that they can be run in other OS's ... but not in DOS ... or without sound at best Quote: I do have a computer at home with a SBAWE64 ISA, where I can work sound under pure DOS. Public value of this fact won't necessarily increase in future. Quote: my efforts to develop sound drivers for DOS are taking me a lot of time So you are developping sound drivers ... there are also 2 at the forum of BTTR. I would of course prefer a driver that can play in DOS from a thing that can record in DOG-BOX |
|||
21 Dec 2009, 08:12 |
|
Cas 21 Dec 2009, 12:53
Yeah... I hate it! Many people who say they love DOS (actually they say they "loved" DOS) or that still feel a passion for an old piece of software that runs under it (for example, the games Stunts [Stunts portal] and Supaplex [Elmer productions]) are wishing they can port these games for other operating systems or that they can create a new version that can run under such systems. None of them seem to be willing to install DOS in their computers and support native access to these pieces of art!
There is a side of the DOS emulators that is quite bad... as they get people who somewhat love DOS to choose an "easy solution"... but I believe they also have a good part, in that most of these people would simply give up if it weren't for these emulators. Until we have succeeded to make DOS complete enough for all of these people's likes, it's better for emulators to be there. In the meantime... I'm trying hard to develop the drivers, but I'm not that good! I wish you or other people here can give me a hand. I have a nice idea of how I want the driver, but damn, it's so hard to deal with other people's code! What's the basic of those two drivers you tell about? |
|||
21 Dec 2009, 12:53 |
|
DOS386 21 Dec 2009, 13:20
> it's better for emulators to be there.
Use BOCHS > but I'm not that good! I see ... > I wish you or other people here can give me a hand. I'm not expert in PCI either check DOSferatu guy at BTTR forum and his drivers |
|||
21 Dec 2009, 13:20 |
|
edfed 02 Jan 2010, 02:35
to deal with time in a clock based machine, you should think in the Z domain.
instead of a linear time scale, you have a z domain, or Z transform, with interval between two consecutive samples to be variable. the pit will generate a rate like 100Hz (fast and precise enough for human perception) and the code will mesure time as cents of second. for sound play, it is an other interrupt (from a sound card). the interrupt should be the faster possible, like 20 or 30 cpu cylces to update the pit counter 100 times per second (2000 or 3000 cylces) if the CPU runs at 1MHz, it will take only 3/1000 of the power. negligeable... |
|||
02 Jan 2010, 02:35 |
|
ring0 31 Jan 2010, 02:34
Better late than never: Try this link for a more thorough discussion:
http://www.cs.rice.edu/CS/Systems/Soft-timers/code/README.html |
|||
31 Jan 2010, 02:34 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.