Ghidra Plays Mario

Dev tools

processor module testing

SHOW HN2023

207points
29comments
#267of 3,109 in 2023
Top 9%of 2023 by points

How HN took it

LovedMost comments that take a side are positive

8 positive, 8 neutral or asking, 0 mixed, 0 critical, out of 16 comments about the project. Thread score +0.46.

Execution: 3 for, 0 againstIdea: 2 for, 0 againstPerformance: 1 for, 0 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Interesting approach to validating Ghidra processor modules

    From 2 comments
    • Excellent results. As I’m sure you’ll agree there are many stones left to overturn in researching how to play video games without direct human input. I’m looking forward to your…
      ipnon on HN
    • Cool project! I'm very interested in accurate preservation of the behavior of these old systems (chip decapping and scanning, FPGA reimplementation, accuracy-focused emulators)…
      mohn on HN

Objections

  • Demo uses pre-recorded inputs, not an AI playing the game

    From 1 comment
    • Thanks, but I think I'm going to disappoint you: the demo is using pre-recorded manual inputs, which are then replayed when emulating in Ghidra. The only logic involved is…
      0d0a on HN

Requests

  • Explain whether bugs are in Ghidra's processor model or the emulator

    From 1 comment
    • This is great. I’m not clear on if the bugs you are finding are in Ghidra’s processor model or in the emulator? (Though I think it’s the latter?) Also, why would Ghidra have the…
      ComputerGuru on HN

Questions

  • Is the processor model 6502 or closer to the NES 2A03 without BCD

    From 2 comments
    • Is it a 6502 processor model in specific? Because the NES used the 2A03 in NTSC regions: https://www.nesdev.org/wiki/2A03
      msla on HN
    • I think it's closer to the 2A03. Unless I missed something, there isn't any support implemented for binary-coded decimal mode.
      0d0a on HN
  • Why the Goomba reverses direction in the demo

    From 3 comments
    • Cool project! I'm very interested in accurate preservation of the behavior of these old systems (chip decapping and scanning, FPGA reimplementation, accuracy-focused emulators)…
      mohn on HN
    • I think that goomba bumped into the squished goomba Mario had just squished. Mario was just a bit to the left so the flat goombas hit box stuck out to the right a bit and the…
      cylon13 on HN
    • At 17 seconds into the demo video, Mario appears to run into a Goomba horizontally without being harmed, and it just changes course to head in the other direction as if it…
      metadat on HN

Alternatives named

  • Klaus Dormann's 6502 functional tests

    From 1 comment
    • Klaus Dormann's 6502 tests don't rely on a particular emulator environment. They could be used with Ghidra. https://github.com/Klaus2m5/6502_65C02_functional_tests
      masfuerte on HN
  • OpenAI Gym Retro

    From 1 comment
    • The latest on winning Atari with RL+ FWIU: https://github.com/openai/retro: > Gym Retro lets you turn classic video games into Gym environments for reinforcement learning and…
      westurner on HN
  • Tom7's NES learning project

    From 1 comment
    • Very old ML project from a master's student's thesis which is what originally got me into CS. He taught it to play NES games other than mario and had a good breakdown of his…
      JohnMakin on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/37444683)