Hardware enumeration for alternative CPUS

All discussions related to the DCPU and in game hardware (equipment, vehicles)

Hardware enumeration for alternative CPUS

Postby Zardoz » Wed Oct 09, 2013 5:12 pm

I just made a device that controls the enumeration of the rest of devices in a straight forward way, for the alternative CPUs.

https://gist.github.com/Zardoz89/685393 ... merator-md

Also, I add jumpers thing to it. In the old days, a computer could have device fighting to use the same hardware resource (IRQs, memory addresses, etc..). The devices had hardware jumper pins to allow to set what resources will be used by the device and avoid clash between devices, in special if you had duplicate devices. It was very typical in the sound blaster cards, had a jumper to change what IRQ/ADDR/DMA will be used. I add a way to do the same thing, but from the software side, so allow to do some kind of Plug&Play support by the OS in a universal way.
Yep, I have a blog : http://zardoz.es
Emulator DCPU-16 VM
User avatar
Zardoz
 
Posts: 359
Joined: Mon Aug 12, 2013 8:54 pm
Location: Spain

Re: Hardware enumeration for alternative CPUS

Postby Alderin » Fri Oct 11, 2013 11:49 pm

I HATED "Plug and Play" when it came out. We called it "Plug and Pray" because it failed so often.
Setting the jumpers was nice, because once they were set right, that was it, they were set right.
Early Plug and Play devices could change their settings any and every time you rebooted. On one of my systems, it was a 50/50 chance that there would be a collision because of PnP collision, requiring another reboot to fix it. Such a pain.
Alderin
 
Posts: 67
Joined: Mon Aug 19, 2013 7:02 pm
Location: San Jose, CA


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest