Live data from Hacker News

The Adventures of Writing a CHIP8 Emulator

benjcal.space

1–10 of 17 posts

Re: The Adventures of Writing a CHIP8 Emulator

#4
Nice to see someone implementing a chip8 emulator. This is always a great learning project.

However, I do not think that he needs to go so far to explain what a stack does. If you can understand the rest of the text you probably have enough context and knowledge to know that already.

Re: The Adventures of Writing a CHIP8 Emulator

#5
I learned programming in 1977, age 12, on an RCA VIP (CDP1802 cpu) with 2K RAM, a hex keypad, composite video out (thru an RF modulator) and cassettes. None of that fancy ASCII stuff, and floppy drives were an unimaginable luxury.

CHIP-8 was a fun, approachable language. "Hacking" was hand-disassembling the CHIP-8 programs in the user manual.

It was easy to understand how computers were simply more complex TTL and CMOS projects like my father and I built each month from Popular Electronics and Radio Electronics. Dad worked at RCA, programmed in IBM 360 Assembler, FORTRAN, and at that time was helping write the ATLAS language (IEEE 416). Together we learned Tiny BASIC, and this launched my computer business for forty years.

Kudos to all the folks keeping CHIP-8 alive as a vital link from Boole and Shannon thru machine code to the "modern" world.

Re: The Adventures of Writing a CHIP8 Emulator

#7
post #6

Maybe a typo, maybe I didn't get it: > 6101 is simply telling the CPU "set V1 (1 comes from the 3rd nibble) to the value of 0c" Shouldn't it set V1 to 0x01?

Typo indeed. I think I was using a diffuser ROM to illustrate something and then I decided to use a more simpler one but forgot to update the text… will fix soon :)

Re: The Adventures of Writing a CHIP8 Emulator

#8

What stack is this blog using? It looks like plain HTML/CSS/JS. It's very nice. I'm asking because the choice of stack to use is keeping me away from starting my own blog.

Is 11ty with this theme:

https://github.com/arpitbatra123/eleventy-blog-mnml

Choice of stack also kept me away so I decided to just keep it simple!

11ty is pretty close to html/css, but it has the niceties of being able to reuse html where you want.

I recommend to start without a theme, Just make a html file named layout and add {{ content }} And then an md file and put on the top matter layout:

It’s really all is needed and it’s good to understand how it works (as opposed to jekyll or hugo that I couldn’t figure out because they have a bunch of undocumented assumptions and requirements…)

Re: The Adventures of Writing a CHIP8 Emulator

#10
post #4

Nice to see someone implementing a chip8 emulator. This is always a great learning project. However, I do not think that he needs to go so far to explain what a stack does. If you can understand the rest of the text you probably have enough context and knowledge to know that already.

I had a friend over while I was playing with chip8, and I’d need to explain to him how to implement a stack… I probably had him in mind while writing ¯\_(ツ)_/¯
Post reply on HN