Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Found the internet!
Posts
Communities

Posts about CHIP-8

Subreddit Icon
r/EmuDev
18.6k members
Community of people building emulators. Discord: https://discord.gg/dkmJAes
Visit
Subreddit Icon
r/rust
200k members
A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity.
Visit
Subreddit Icon
r/programming
4.7m members
Computer Programming
Visit
Subreddit Icon
r/golang
189k members
Ask questions and post articles about the Go programming language and related tools, events etc.
Visit
Subreddit Icon
r/buildapcsales
874k members
A community for links to products that are on sale at various websites. Monitors, cables, processors, video cards, fans, cooling, cases, accessories, anything for a PC build.
Visit
Subreddit Icon
r/emulation
301k members
Emulation News and Discussion.
Visit
r/chip8
54 members
Welcome to r/chip8
Visit
Subreddit Icon
r/Chipstarr878
10 members
The official subreddit of the twitch streamer Chipstarr878. Post your favourite memes, twitch clips and funny moments here!
Visit
r/ChipCommunity
4.0k members
This is the home of the community centered around the C.H.I.P. single-board computer made by Next Thing Co.
Visit
Subreddit Icon
r/chiptunes
38.8k members
A community dedicated to music that gets the most out of the least. Music in the style of old games, eg, C64, Atari, NES, Gameboy, Sega Genesis, Adlib, OPM, MOD, etc.
Visit
22
Subreddit Icon
Crossposted by19 days ago
youtu.be/e-G6Dm...
22
1 comment
17
Posted by17 days ago
17
2 comments
20
Subreddit Icon
Posted by2 months ago

All right, 4th (and hopefully last for my CHIP-8 project) post in under 4 days.

I just got done implementing the delay timer by simply subtracting two points in time and doing (difference_in_time % 255). However the sound timer is less straightforward. This guide states that the interpreter should run normally as the sound timer plays.

So that means that the sound should play at the same time as the rest of the program, right? And that would mean that I would have to implement some sort of concurrency. However, implementing concurrency for a CHIP-8 doesn't sound like the best solution.

There's got to be a simpler way to implement the sound timer. The thing is I can't just do the same thing as I did for the delay timer because it needs to play sound at the same time. Can anybody give me a hint about how to implement the sound timer?

20
10 comments
175
175
81 comments
27
27
1 comment
12
Subreddit Icon
Posted by2 months ago

Hello again, this subreddit has been very friendly and helpful for me in building my CHIP-8 implementation!

There are a few CHIP-8 instructions such as 8xy5 that involve arithmetic and the VF flag. For example, the just-mentioned instruction requires that the VF flag be set to 0 if the result is underflowed. Now my question is: what to do with the result? Do I simply not write it to the register? This other resource talks about "underflowing" the result, like as in doing something to the result. And AFAIK underflow is a condition, not an operation.


edit: I should have specified that I'm confused about what to do with the result when it is negative.

12
4 comments
57
Subreddit Icon
Posted by3 months ago

Hey guys, about a month ago I shared the prototype of my CHIP-8 console here and people seemed pretty interested, so I figured I'd now share the completed project.

Essentially, I ported my CHIP-8 emulator to a STM32 MCU, wrote the firmware to interface with a display, SD reader, buzzer, and buttons, and then designed a simple PCB around the whole thing.

It's essentially complete now (other than some planned firmware tweaks) and you can check out the source code on GitHub. You can also see a video if it in action here.

If you are interested in reading about my development of the project, some challenges I faced, and the bone-headed design decisions I made along the way due to my inexperience, check out my dev blog.

You can also check out the build guide if you have any interest in trying to put one together yourself.

It's not perfect, and could definitely use some polish, but I started this as a means of learning more about embedded software development, so I'm pretty happy with how it turned out.

I may revisit this in the future once I have more experience and try to make it way more polished, so if you have any suggestions feel free to let me know!

https://i.redd.it/lj2q04okt1c91.jpg
57
10 comments
23
Subreddit Icon
Posted by2 months ago
23
2 comments