Earlier quoted context omitted.
Nice one! Sounds like a fun project to do. Did you follow any tutorial or guide for this? If so, I would appreciate it if you shared it.
If you don't want to delegate the fun of learning to an LLM, here's how I've built a RV64IM simulator in C in a weekend. All you need is an opcode table, the RISC-V specs and to implement each instruction; the good thing of RISC CPUs is that instructions are very simple (i.e. pretty much everything is a variation of `dest = src1 OP src2`) and memory instructions are dedicated. The other cool thing is that there are n…
Running Doom on Our Custom CPU and Going Viral
21–30 of 41 posts
Re: Running Doom on Our Custom CPU and Going Viral
#22Earlier quoted context omitted.
Nice one! Sounds like a fun project to do. Did you follow any tutorial or guide for this? If so, I would appreciate it if you shared it.
Hi, I didn't follow any specific guide on this, but asked ChatGPT about the bare minimum environment needed to run DOOM. From there, I figured out how to execute the instructions using a switch-case and how to make a custom syscall to trigger rendering. I made a post a while back that details the entire process: https://www.reddit.com/r/EmuDev/comments/1t1or4j/doom_runs_o...
Re: Running Doom on Our Custom CPU and Going Viral
#23Re: Running Doom on Our Custom CPU and Going Viral
#24edit: I went to down a quick hole "The historical footnote is that a version of this genuinely happened. SNES Doom shipped with a Super FX 2 in the cartridge, a custom RISC chip with a pixel-plot instruction, because the console's own CPU had no chance. Jaguar and PlayStation ports both moved the rasteriser onto dedicated hardware. Doom's design was shaped by the absence of an FPU, and then hardware kept getting built to catch up with it."
Re: Running Doom on Our Custom CPU and Going Viral
#25why Zmmul and not full M — is it just fpga area, or did the doom port let you drop div/rem?
Re: Running Doom on Our Custom CPU and Going Viral
#26Reading "Custom CPU" I expected wafer.space, instead of FPGA.
Re: Running Doom on Our Custom CPU and Going Viral
#27Re: Running Doom on Our Custom CPU and Going Viral
#28Cool, I thought this was a CPU custom designed for Doom, but I guess that's just a 486 :) edit: I went to down a quick hole "The historical footnote is that a version of this genuinely happened. SNES Doom shipped with a Super FX 2 in the cartridge, a custom RISC chip with a pixel-plot instruction, because the console's own CPU had no chance. Jaguar and PlayStation ports both moved the rasteriser onto dedicated hardwa…
*just* a 486. :-(
Re: Running Doom on Our Custom CPU and Going Viral
#29Anybody got a link to that?
Is it this?
https://www.instagram.com/armaan.gomes/reel/DatqWKChtnw/?hl=...
I was expecting a real video, not some 9 second clip posted to random social media website.