‹ BackHN Continuity

Thread

Show HN: I wrote a custom assembler for CHIP-8 in C++

28 points · 8 comments · tack1234

  1. Retr0id · · focus · HN ↗
    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 &quot;I&quot; 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: <a href="https:&#x2F;&#x2F;www.da.vidbuchanan.co.uk&#x2F;blog&#x2F;bggp3.html" rel="nofollow">https:&#x2F;&#x2F;www.da.vidbuchanan.co.uk&#x2F;blog&#x2F;bggp3.html
    1. tack1234 · · focus · HN ↗
      Thanks for pointing that out, I think it was somewhere on my TODO list which miraculously got lost. I&#x27;ll have a look at it!
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.