News for hackers. Stuff that matters.
Re:Gameboy Emulator in ARM Assembly by teaearlgraycold on Thursday February 03, 2022 @10:05PM (#30202315)
The GPU implementation is surprisingly simple

https://github.com/cottsay/arm_asm_emu/blob/main/src/gpu.S

Re:Gameboy Emulator in ARM Assembly by aappleby on Friday February 04, 2022 @01:20AM (#30203484)
That's not the whole GPU, just the timing part.
Re:Gameboy Emulator in ARM Assembly by flohofwoe on Friday February 04, 2022 @05:25AM (#30205004)
The rest appears to be in framebuffer.S, still not a lot of code though.
Re:Gameboy Emulator in ARM Assembly by danielvaughn on Thursday February 03, 2022 @10:27PM (#30202466)
Makes me wonder how easy it would be to implement something like this with WASM and either WebGL or WebGPU.
Re:Gameboy Emulator in ARM Assembly by flohofwoe on Friday February 04, 2022 @05:22AM (#30204991)
Depending on how 'correct' the video emulation is (e.g. per pixel, per scanline or per frame), it won't make much sense to offload the video emulation to the GPU because it must run in lockstep with the rest of the system emulation. Moving the entire emulation to the GPU also makes little sense because such old-school system emulations are hard to parallelize (because of the above mentioned lock-step problem - for a cycle-correct emulator you basically need to emulate one clock cycle for all 'subsystems' after another). You could probably emulate a ton of fairly slow gameboy emulators in parallel though :)
Re:Gameboy Emulator in ARM Assembly by Vel0cityX on Friday February 04, 2022 @12:27PM (#30209754)
This is all of course a very rudimentary GB emulator, not accurate at all.
Re:Gameboy Emulator in ARM Assembly by cottsay on Friday February 04, 2022 @03:46PM (#30212914)
Hey hey hey. Whatsamatta with my implementation? It should be fairly cycle-accurate...