Author Topic: How to get dumped roms into a useful format?  (Read 567 times)

bewilderbeest

  • Newbie
  • *
  • Posts: 3
    • View Profile
How to get dumped roms into a useful format?
« on: November 16, 2025, 04:10:30 PM »
I'm pulling apart a 36-in-1 phone case thing which plays NES games. I've dumped the ROM and have got as far as figuring out that it's some late VTxx device, possibly a VT369, with the ROM on SPI flash connected via a 90MHz (!) SPI bridge. This makes it quite interesting because it's relatively easy to reprogram.

I gather that emulators like Nintendulator stand a chance of playing this, depending on the details of the implementation, but I've found that Nintendulator insists on there being a valid .nes header on the top of the image. What's the right header to put on something like this?

Thanks!

SF-Human

  • Jr. Member
  • **
  • Posts: 77
  • Your average human doing average things.
    • View Profile
    • Personal Website (Chinese)
Re: How to get dumped roms into a useful format?
« Reply #1 on: November 16, 2025, 09:43:57 PM »
Can you put up the ROM you've dumped there? It would be useful to figure out what mapper it runs on and create a header for it if a ROM is available.

bewilderbeest

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to get dumped roms into a useful format?
« Reply #2 on: November 17, 2025, 02:21:44 PM »
Sure --- attached (without the header).

The PRG ROM it uses at startup is at 0x7c000-0x7ffff, and it's clearly accessing the VTxx extended registers for stuff like memory map configuration, so I'm relatively sure it's a VT369. There's also a chunk of code at 0x76000 which looks like it's loaded/mapped at 0x6000. But it may be more complex than that. Sniffing the SPI flash bus shows a startup sequence which looks like it's initialising the SPI flash in software, which means there might be a mask ROM inside the blob in addition to the SPI flash. This means there could be an extremely non-standard handoff between the internal ROM and the SPI flash; there's certainly no code at 0x00000-0x03fff.


bewilderbeest

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to get dumped roms into a useful format?
« Reply #3 on: November 19, 2025, 07:35:45 PM »
I got some more information.

Turns out that the dump's SHA1 itself matches the one in MAME as the 36pcase device, which is currently non-functioning.

Yes, it's a VT369, but there's a bunch of extra registers all through 0x41xx. I can't tell whether these simply aren't in https://www.nesdev.org/wiki/VT02%2B_Registers or whether it's a VT369 derivative. I've identified the LCD backlight switch, for example, on 0x4144 and 0x4146. The MAME source does describe some of these extra registers but not all of them. Is there any good source for VT369 documentation? The MAME source describes way more registers than any of the wikis.

If it's a VT369 then it'll be starting up from the internal mask ROM, which makes sense from what I'm seeing sniffing the SPI. I'm going to try and dump this; I've no idea if it's different to any of the other dumps around. Maybe that'll make MAME emulation work. I'm hoping there isn't an internal I2C device in the blob; looks like some VT369s have this.

Also, I broke the screen. Dammit.


NewRisingSun

  • Sr. Member
  • ****
  • Posts: 380
    • View Profile
Re: How to get dumped roms into a useful format?
« Reply #4 on: Today at 09:33:58 AM »
It reads stuff from some kind of serial ROM into RAM at E00 and executes it.