TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Adventures of Writing a CHIP8 Emulator

50 pointsby lrsjngalmost 2 years ago

7 comments

wlindleyalmost 2 years ago
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.<p>CHIP-8 was a fun, approachable language. &quot;Hacking&quot; was hand-disassembling the CHIP-8 programs in the user manual.<p>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.<p>Kudos to all the folks keeping CHIP-8 alive as a vital link from Boole and Shannon thru machine code to the &quot;modern&quot; world.
teo_zeroalmost 2 years ago
&gt; I decided to use C. Wait a minute, isn&#x27;t that illegal? This might surprise you but, it is not! You are not forced to use Rust for all new projects henceforth!<p>That made my day!
评论 #36309305 未加载
abhaynayaralmost 2 years ago
I have previously written about coding a chip8 emu inside the nand2tetris emu: <a href="https:&#x2F;&#x2F;abhaynayar.github.io&#x2F;blog&#x2F;chip8-in-jack.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;abhaynayar.github.io&#x2F;blog&#x2F;chip8-in-jack.html</a>
laerialmost 2 years ago
Nice to see someone implementing a chip8 emulator. This is always a great learning project.<p>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.
评论 #36308694 未加载
TazeTSchnitzelalmost 2 years ago
If you want another, slightly more feaureful toy platform to emulate, consider <i>uxn</i>&#x2F;<i>varvara</i>.
评论 #36308728 未加载
kaycey2022almost 2 years ago
What stack is this blog using? It looks like plain HTML&#x2F;CSS&#x2F;JS. It&#x27;s very nice.<p>I&#x27;m asking because the choice of stack to use is keeping me away from starting my own blog.
评论 #36308597 未加载
评论 #36305259 未加载
spepsalmost 2 years ago
Maybe a typo, maybe I didn&#x27;t get it:<p>&gt; 6101 is simply telling the CPU &quot;set V1 (1 comes from the 3rd nibble) to the value of 0c&quot;<p>Shouldn&#x27;t it set V1 to 0x01?
评论 #36308562 未加载