Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Show HN: I wrote a custom assembler for CHIP-8 in C++ (https://github.com)

24 points by tack1234 2 days ago | 4 comments | View on ycombinator

Retr0id about 8 hours ago |

Nice, chip8 is a lot of fun. I looked at your emulator implementation too, and it looks like you have an OOB access bug in the "I" register (it can be incremented beyond the RAM array bounds). This is a very common chip8 emulator bug, which can (in some cases) be exploited to allow a malicious ROM to escape the emulator. I wrote about this here: https://www.da.vidbuchanan.co.uk/blog/bggp3.html

Stevenrojas888 about 8 hours ago |

Awesome milestone! As someone diving into C and C++ right now, what was the steepest part of the learning curve for you when structuring the assembler compared to writing the emulator in C?

adityamishra241 about 7 hours ago |

Really cool project. How much harder did the assembler feel compared to writing the emulator?

rfgplk about 8 hours ago |

Nice job!