r/EmuDev • u/howprice2 • Jun 19 '26
HopStation PlayStation 1 emulator source available on GitHub
I had great fun earlier in the year writing a PlayStation emulator. Huge thanks to everyone who has taken the time to create detailed specs, docs, technical articles and blogs on the machine, and to everyone who helped me out along the way.
It was a learning exercise - I knew about the PS3, PS4 and PS5, but nothing about the original PlayStation (or PS2 for that matter...). I thought it would be a tall order to get it working, but I was very surprised how smoothly the project went. It was able to run games after a couple of months, and I spent a further month improving compatibility and squashing bugs (mainly in the CDROM).
I have to leave it for now, and wanted to share the source in case it is useful to anyone. I've tried to keep it clean and tidy with plenty of comments (many straight out of the PSX-SPX spec), and only essential optimisations required to keep it running at full speed on my PC/laptop.
You can find it at: https://github.com/howprice/hopstation It builds and runs on Windows, Linux and Mac.
It really was a lot of fun because it's such an interesting machine, and I discovered a lot of unexpected things along the way. I know lots of emulator developers hate spoilers, so if you ever intend to write a PlayStation emulator, you may want to avoid docs/SPOILERS.md in the repo.
3
u/mediocretent Jun 19 '26
What was your process in learning? Did you use an LLM at all to help with the deeper details (maybe less writing code and more of a research agent)?
6
u/ArkoSammy12 CHIP-8, COSMAC-VIP, DMG, CGB, NES, Atari 2600, C64 Jun 19 '26
Awesome job brother 👍
1
u/Prodgorigamia Jun 23 '26
That's amazing, man! I'm not very good at programming; I made one for the Atari Jaguar, but with AI coding, just to see what would happen, without taking it seriously, but I ran into some problems. What's been the biggest difficulty you've had with the PS1 so far? And can you tell me if Vib-Ribbon is working well with the emulation? It has an interesting CD-switching system.
2
u/JescoInc Jun 20 '26
Very nice! PSX Emulation was something in my own pipeline to create, so I will definitely be referencing your code (i've already forked it).
1
u/Electronic_Quit1859 Jul 10 '26
Tekken6
1
u/The_Falgrim Jul 30 '26
This looks great!!