News for hackers. Stuff that matters.

tack1234

Re:Show HN: I wrote a custom assembler for CHIP-8 in C++ on Tuesday September 22, 2026 @06:47AM (#49799178)
Thanks for pointing that out, I think it was somewhere on my TODO list which miraculously got lost. I'll have a look at it!
Re:Show HN: I wrote a custom assembler for CHIP-8 in C++ on Tuesday September 22, 2026 @06:43AM (#49799143)
Thanks!!
Re:Show HN: I wrote a custom assembler for CHIP-8 in C++ on Tuesday September 22, 2026 @06:43AM (#49799141)
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.

Re:Show HN: I wrote a custom assembler for CHIP-8 in C++ on Tuesday September 22, 2026 @06:41AM (#49799117)
Thanks! Well at first I did not have much structure, I just went full procedural and did what I needed to do at each step. It was an ugly, long chain of loops and switches. Then I read up about assemblers a little bit, figured out what should go into the lexing/parsing/emitting stages and split it into classes.

The steepest part.. probably trying to do things efficiently, using string views instead of strings where relevant, references and also ranges + iterators in C++. The from_char function and how it reports errors (e.g. when the iterator it returns is the end of the provided range, there were no errors) etc.

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

https://github.com/Tackx/c8-ass

I'm writing a custom assembler for CHIP-8 and just finished adding support for the DB/.byte directive so I can embed sprites in the ROM and finally get something drawn on the screen. It SHOULD support all OG CHIP-8 instructions, but still a ton of rough edges that I'm ironing out.This is my first ever C++ project, just like the CHIP-8 emulator was my first ever C (and emudev) project....

( Read More... | 8 comments | 4 points | on HN )

Show HN: I wrote the emudev hello world (CHIP-8 emulator in C)

https://github.com/Tackx/c8

Yep, just another CHIP-8 emulator. But for me, as someone who has never written anything this low level and never touched C before, it was quite the challenge at first. But after writing the first few instructions (drawing especially), it slowly became almost a breeze. Until I had to debug why my font sprites were rendering all messed up.It's still work in progress, definitely not finished,...

( Read More... | no comments | 3 points | on HN )
Glad you noticed it! Indeed I tried to mix modern UI with retro style interfaces (like vim) with the hotkey bar at the bottom.

Show HN: I built a desktop reminder app using Rust and Vue.js

https://github.com/thevxn/todolator

I've been meaning to learn the basics of Rust, build my first desktop application ever and replace with it the only 2 desktop reminder apps I've known to fulfill my requirements, as both are 15 years+ old at this point.It's still a work in progress, but after weeks of development I feel I've achieved an acceptable state for a first release.My main use case for this is reminding...

( Read More... | 2 comments | 2 points | on HN )