C64 Hardware Simulator Isn’t (Just) For Playing Around

If you want to play old Commodore games, there are C-64 emulators available for just about any platform– but most of them are so high level, they’re really meant for just that: playing games. [antirez] has a different goal with his c64-hw-sim project— it’s a lower-level emulation that simulates every chip and every connection on an ASSY 250407 motherboard, and all the chips on it, too. Ever wondered what happens when a specific chip is missing, or a random pin is shorted to ground or forced high? You can do all that in software, with no risk of harming antique hardware.

While that might be a fun bit of faffing about for a certain sort electronics sadist, the real utility is to learn about the hardware, both in the abstract and to help you troubleshoot a board you might have. It’s likely that many given failure modes reproduce the same effects– lots of things can knock out the display output, for example–but at least if you’ve reproduced a flaw in software you can try testing the hardware to see if that’s the cause of your problem. Assuming the simulation covers your hardware issue, anyway.

There’s cycle-accurate chip emulation for the processor, CIAs, SID and VIC-II via code by [Andre Weissflog], a.k.a. [flooh]. Meanwhile analog circuitry in the video, audio and power sections are not simulated so not everything fault will be replicable here. Still, it might be a neat tool– just don’t try and run any games on it, because even on high-end modern hardware it only runs at about one-third speed. That’s fast enough for diagnostics, but not so much for Maniac Mansion, never mind Elite. 

Speaking of Elite, did you know the source– both of the port and the original– is available with comments? If you want an emulator you can play, you can get it on everything from microcontrollers like Teensy to your personal computer.

Thanks to [Salvatore] for the tip!



from Blog – Hackaday https://ift.tt/SAqxnQC

Comments

Popular posts from this blog

Modern Radio Receiver Architecture: From Regenerative to Direct Conversion

Custom Macro Keyboard Looks Good in Wood

Fractal Vise Holds Odd-Shaped Objects Tight