VOGONS


First post, by bamdad

User metadata
Rank Newbie
Rank
Newbie

hey everyone,

i've been around these forums for years now but always found answers to my questions and i guess i enjoy reading what others have to say so i kept quiet. however, the problem i'm facing is really bugging me so.. here we go.

so i have an old machine that used to have an AMD 486DX4-100 until recently, then i found a 100mhz IBM (cyrix) 5x86 lying around and thought i'd give it a go. after jumpering and building a homebrew cooler for the better part of the night and discovering that it can go up to 120mhz with a 40mhz bus i was thrilled.. aside from the fact the new ISA bus speed killed my already wonky intel etherexpress pro card's eeprom - but that is another story.

of course i went ahead and fired up duke3d that was quite laggy running on my old 486 CPU. the demo behind the main menu was silky smooth, no palette problems or artifacts.. and then i started a new game and found that my serial mouse is dead. this baffled the frak out of me since it was working perfectly in norton commander so i tried it in blood and the same thing happened. then shadow warrior. even rise of the triad. however, and this is the weirdest part, in older games like doom or sim city 2000 it's working perfectly. it even works in duke's build.exe. not to mention windows 3.11. this rules out any IRQ conflicts and dos4gw incompatibilities, so i tried

- lots of microsoft mouse drivers and the newest ctmouse
- lowering ISA bus speeds
- un-overclocking the CPU
- removing cyrix optimisations (5x86.exe stuff)
- patching duke3d.exe with 'buildmfx'
- checking whether duke3d is using COM1 for a serial game (although i don't think that affects single player and it was working with the 486 before but just in case)

..to no avail.

so is my cyrix processor on a crusade against 3d realms or am i doing something horribly wrong? xD

best,
bamdad

Last edited by bamdad on 2019-10-25, 13:18. Edited 2 times in total.

Reply 1 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie

so it seems it's not just 3d realms, magic carpet has this too. and i noticed that in blood if i set the mouse sensitivity to 1, it works for a short while then dies again.

can the be because of some integer incompatibility in cyrix processors? maybe when it switches to protected mode *and* the mouse with some specific kind of arithmetic *and* some other condition is met then it dies? having it work then suddenly die looks like a silent buffer overflow or an IRQ conflict. and since we pretty much ruled out the latter one since it works everywhere else, i'm going to try to play with 5x86.exe a bit more.

if anyone has any idea, please reply. i'll post my findings if there are any for posterity.

Reply 2 of 19, by derSammler

User metadata
Rank l33t
Rank
l33t

- lowering ISA bus speeds

How much did you lower it?

Note that when it's a PS/2 mouse, you also have to make sure not to overclock the keyboard controller. There should be an option to set its speed as well in the BIOS.

Reply 3 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie
derSammler wrote:

How much did you lower it?

PCLK/8, the lowest possible value in amiBIOS. since my clock is 100mhz by default, this should be.. 12mhz?

derSammler wrote:

Note that when it's a PS/2 mouse, you also have to make sure not to overclock the keyboard controller. There should be an option to set its speed as well in the BIOS.

nah, it's a microsoft (actually a rebranded mouse systems) serial mouse. keyboard clock has no effect on it..

EDIT: i didn't say it's a serial mouse in the OP even though thought i did

Reply 4 of 19, by derSammler

User metadata
Rank l33t
Rank
l33t

PCLK/8, the lowest possible value in amiBIOS. since my clock is 100mhz by default, this should be.. 12mhz?

That could be your problem, because with PCLK/8, you are running the ISA bus with only 4.1 MHz! You need to set it to PCLK/4, since the FSB of 33 MHz is the reference here, not the speed of the CPU (which is internal only and not relevant for any external clocks). This should work with an FSB of 40 MHz as well. If ISA runs to slow, it may miss data to transfer, if it's too fast (>10 MHz), most i/o chips will stop working correctly. You should always aim for something between 8 and 10 MHz.

Last edited by derSammler on 2019-09-03, 12:56. Edited 1 time in total.

Reply 5 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie
derSammler wrote:

PCLK/8, the lowest possible value in amiBIOS. since my clock is 100mhz by default, this should be.. 12mhz?

That could be your problem, because with PCLK/8, you are running the ISA bus with only 4.1 MHz! You need to set it to PCLK/4, since the FSB of 33 MHz is the reference here, not the speed of the CPU (which is internal only and not relevant for any external clocks).

good idea, but i tried with all the dividers.. no luck there. : (

Reply 7 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie
derSammler wrote:

Then you could try using COM2 or a different multi i/o card.

well the only other machine i have from this era is a dead IBM aptiva that has all the I/O integrated on the motherboard, which is in fact where i got the cyrix processor in the first place. not to mention it's PS/2. anyway, i could order another ISA I/O card from ebay, but that's expensive and only a workaround - the mouse works flawlessly with the AMD 486DX4-100.

what is interesting is that i tried COM2 but the mouse doesn't respond there. even if i explicitly specify it with /S2 using ctmouse. maybe the other serial port is dead on the card or the extension cable is torn.. will have to look into that. thanks. : )

Reply 8 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie

so i got another motherboard with PCI slots, an LS-486 rev. c1.. and everything worked fine right up to the point when i inserted the cyrix chip. jumpers were set correctly, and orientation double-checked. however, starting duke nukem again led to a freeze. i thought it's the cyrix acting up again and put the AMD 5x86 133 back. but since then no matter what i do 2d realms games and even emm386.exe loaded as a driver make the machine freeze.

i tried removing all unnecessary ISA cards, moving them to different slots, cleaning the CPU socket and die, using different CPUs, removing all but one FPM RAM stick, running memtest, nothing helps..

what is interesting is that descent sometimes runs sometimes says 'unexpected drop to real mode'. so that leads to me thinking that accessing UMB *and* running in 32-bit protected mode makes the machine hang. but what can be causing this?

Reply 10 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie
appiah4 wrote:

Check your BIOS memory settings and enable Hidden Refresh.

there is no such option. tried enabling 'DRAM slow refresh' but it didn't change anything.

Reply 11 of 19, by appiah4

User metadata
Rank l33t++
Rank
l33t++
bamdad wrote:
appiah4 wrote:

Check your BIOS memory settings and enable Hidden Refresh.

there is no such option. tried enabling 'DRAM slow refresh' but it didn't change anything.

Not the same thing. Im 99% certain you need that. Unfortunately not all mainboards have the option 😒

Retronautics: A digital gallery of my retro computers, hardware and projects.

Reply 13 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie

this is so weid. i tried everything, removed every ISA card and the PCI video card, then put the old trusty ET4000 in, did a CMOS reset with the jumper, booted DOS with only command.com.. and still, hangs are there. i'm starting to suspect that there's some fault in that cyrix processor that simply killed some part of my motherboard (e.g. the one responsible for UMBs - sorry i'm not an x86 architecture expert) and that's why this is happening.

if anyone has any ideas, i'm all ears.

Reply 14 of 19, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

Maybe a stick of RAM is flakey?

Have you tried different known good RAM?

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 15 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie
cyclone3d wrote:

Maybe a stick of RAM is flakey?

Have you tried different known good RAM?

sure, this was one of my first troubleshooting steps. tried with different combinations, all tested with memtest. : (

Reply 16 of 19, by feipoa

User metadata
Rank l33t++
Rank
l33t++

Did you try a different mouse and again with no mouse at all?

Last edited by feipoa on 2019-09-25, 05:38. Edited 1 time in total.

Plan your life wisely, you'll be dead before you know it.

Reply 17 of 19, by feipoa

User metadata
Rank l33t++
Rank
l33t++

Also, is your IBM 5x86 chip on an interposer that is dropping the voltage to 3.45 V? If not, did your ISA board have a voltage regulator to drop the voltage from 5 V to ~3.45 V?

It is unfortuntate that the FSB frequency name wasn't standardised among motherboard manufacturers. I think on PCI boards, "PCLK" is PCI-CLOCK, and the ISA clocks are derived from the PCI clock (at least as viewed from the BIOS), rather than the FSB.

Might be worth running MEMTEST+ 4.00 (not the newer ones).

Helps to take photos as well. Are you using single or double banked cache? 512K or 256K? And could you be using EDO RAM when it wants FPM?

Plan your life wisely, you'll be dead before you know it.

Reply 18 of 19, by bamdad

User metadata
Rank Newbie
Rank
Newbie

hello,

so i got distracted by life stuff.. then a few days ago i got back to this project and tried a different approach. instead of blaming it on hardware, i tried it with a completely fresh install. turns out it was the system files that were the problem - they got so corrupted that launching any application resulted in further random corruptin. so even when i booted from a floppy everything was a mess.

this might have started with the overclocked cyrix processor freezing on boot, or a hundred other reasons. the takeaway is one shouldn't blame stuff on hardware before every software possibility is exhausted.

Reply 19 of 19, by feipoa

User metadata
Rank l33t++
Rank
l33t++

It is also possible that hardware run out of specification or in conflict is corrupting your software and your problem may slowly return. I've certainly run into this a few times.

Plan your life wisely, you'll be dead before you know it.