‹ BackHN Continuity

Thread

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

28 points · 8 comments · tack1234

  1. adityamishra241 · · focus · HN ↗
    Really cool project. How much harder did the assembler feel compared to writing the emulator?
    1. tack1234 · · focus · HN ↗
      Thank you!

      From the conceptual standpoint, it felt way clearer to me from the start. I knew I "just" had to parse some input text and figure out the instructions into which it should be turned into. The actual lexing and parsing of the source code text character by character lead me to way more errors and debugging sessions than I expected, but that's probably just me being a bit rusty.

      So I would say the emulator was harder to grasp at first, as I had no prior lower level experience, had no idea what a register or a stack pointer or a program counter is, etc.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.