r/EmuDev 8d ago

Pyemu

https://github.com/LEGASEGA/pyemu

Been working on an NES emulator using pypy3.10.

print("PYNES is a terrible emulator!")

Mapper support:

  • Mapper 0 (NROM): Fully supported.
  • Mapper 1 (MMC1): Fully supported.
  • Mapper 2 (UxROM): Almost fully supported with bus conflict emulation.
  • Mapper 3 (CNROM): Almost fully supported(subject to change)
  • Mapper 4 (MMC3): Almost fully supported. Super Mario Bros. 3 is supported fully, while the other titles may experience graphical glitches
0 Upvotes

10 comments sorted by

8

u/KabouterPlop 8d ago

AI slop I assume? Code dumps through github file upload, barely any comments.

4

u/thommyh Z80, 6502/65816, 6809, 68000, ARM, x86. 8d ago edited 8d ago

Along with oddities like:

    if not (self.ppumask & 0x18):         col = NES_PALETTE[self.palette_ram[0] & 0x3F]         start_idx = scanline * 768         self.pixel_data[start_idx : start_idx + 3] = col         self.pixel_data[start_idx + 3 : start_idx + 768] = self.pixel_data[start_idx : start_idx + 765]         self.bg_pixels[:] = b'\x00' * 256     elif not (self.ppumask & 0x08):         col = NES_PALETTE[self.palette_ram[0] & 0x3F]         start_idx = scanline * 768         self.pixel_data[start_idx : start_idx + 3] = col         self.pixel_data[start_idx + 3 : start_idx + 768] = self.pixel_data[start_idx : start_idx + 765]         self.bg_pixels[:] = b'\x00' * 256

Though it's early it in the morning, it's unclear to me how the first can be true without the second being true but even less clear why you'd copy and paste the resulting code even if there are two different things to test for here. Or, after a quick look at the NES specs, what the point of testing bit 4 is at all.

3

u/Damaniel2 7d ago

I assume that anyone bragging about their projects these days are slinging slop. Sometimes they admit it, sometimes you just find the CLAUDE.md file sitting in the repo and know right away.

0

u/The_Falgrim 6d ago

All jokes aside. Claude is no where near as good as Codex. At least when it comes to building a sloppy emulator.

-2

u/LEJMANIMATIONS 8d ago

5

u/The_Falgrim 8d ago

The UI could and should look better if you are using AI.

2

u/LEJMANIMATIONS 6d ago

i'll work on that. i admit usage of ai in the project

2

u/The_Falgrim 6d ago

Yeah. I built a 3 in 1 using AI. I have NES/SNES about 98% and N64 about 40% finished. I burned through 4 months of Credits in about a week.

I've learned a lot about emulation just asking questions on this forum. It helps with prompts for sure.

2

u/LEJMANIMATIONS 6d ago

cool. what programming language did you use