myrkraverk 09.12.2012, 23:41 |
Waiting for 3 (or 3.3) microseconds? 286 and up. (Developers) |
Hi all, |
RayeR CZ, 10.12.2012, 03:09 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
Sorry I don't know SB programming but if there is available some status register that changes a value when device is ready it's the best way to read this status in a loop (you may add some n-cycles timeout to not hang the PC if there's is some error). Otherwise I would rather wait 1ms (it's only at once on system startup so nobody would notice such short delay) than use fixed loop counter that is dependent on CPU speed - it's a bad code. I think it's acceptable to use some counter based on number of IO reads because ISA (LPC) bus has comparable speed on 286 and modern PC. But CPU cycle was shortened by many magnitudes... --- |
Japheth Germany (South), 10.12.2012, 11:42 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
> What is a good way to guarantee a wait for a few microseconds? Can I use --- |
RayeR CZ, 10.12.2012, 18:04 @ Japheth |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
> One may query Keyboard controller port B ( cpu port 61h ). Bit 4 ("refresh --- |
bretjohn Rio Rancho, NM, 10.12.2012, 15:52 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
Here's some code I've used in a lot of my programs to accomplish this task. It's written for A86, so you will need to change it a little depending on your assembler. You could optimize it some more if you wanted to, but it works OK just like it is. |
myrkraverk 10.12.2012, 21:22 @ bretjohn |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
> Here's some code I've used in a lot of my programs to accomplish this task. |
myrkraverk 10.12.2012, 21:16 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
Here is an email I received with CC Rugxulo. |
Rugxulo Usono, 10.12.2012, 22:03 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
Hi, (not sure why Eric expects me to know anything, I'm quite far from expert) |
myrkraverk 13.12.2012, 14:07 @ Rugxulo |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
Please excuse the late reply. |
marcov 13.12.2012, 22:51 @ myrkraverk |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
> > I think SoundBlaster is dead, I don't think (m)any people will use it. |
RayeR CZ, 14.12.2012, 01:12 @ marcov |
Waiting for 3 (or 3.3) microseconds? 286 and up. |
> I heard that some people also had gotten it to run with audigy2. --- |