84
u/Deformer Aug 26 '21 edited Aug 27 '21
If you like this, take a look at NAND2TETRIS. Its hands down the best resource I've found for grokking CPU architecture. You build a computer from nand gates, then write all the software for it, then write and play tetris.
18
u/dibs45 Aug 26 '21
I looked into that ages ago but never went ahead with it. Might give that a shot in the near future!
5
4
u/scraimer Aug 27 '21
I second this! It gave me great insights into how a computer works, and de-mystified the world of embedded programming enough to jump-start working in that area.
7
6
u/TheWildJarvi Aug 26 '21
I just wrote an assembler for my custom risc CPU but now I wanna try making a software sim version of the CPU.
4
u/dibs45 Aug 26 '21
Do it, it's a lot of fun. I want to build one out for real at some point too. But next step for me is an assembler for my sim.
3
u/I-Am-Uncreative Aug 26 '21
This is literally the project we had to do for our Systems Software class in undergrad. And you're doing it for fun!
1
3
3
u/Voss1167 Aug 26 '21
Awesome! Which architecture are you emulating?
1
u/dibs45 Aug 26 '21
None in particular, more of a software implementation of the CPU Ben designed with a few changes here and there.
2
u/AlexAk92 Aug 27 '21
Try emulating the MOS6502, itβs the basis for the Apple 2, Commodore and the NES.
1
1
2
2
1
1
33
Aug 26 '21
[removed] β view removed comment
11
u/dibs45 Aug 26 '21
I've always wanted to demystify how computers worked. I'm not a compsci student so YT and hands on stuff was the way to go for me.
6
u/matschbirne2003 Aug 26 '21
Read "Code the hidden language of computers" it's insanely good and nevermind that it's written in 1990 or smth. No knowledge needed beforehand. Gives a good overlook how computers work with a bit of history too
2
3
u/evaned Aug 27 '21
You're a decade off of the publication date (1999) but the suggestion is a bullseye hit: that book is outstanding.
At one point I was considering trying to get a university teaching position, and had dreams of building a freshman seminar course around that book.
1
34
u/dibs45 Aug 26 '21
I was inspired by Ben Eater's videos on making a breadboard CPU from scratch and so in order to learn more about how CPUs work I decided to emulate one in software. Next step, writing my own assembler for it.
It's a fun and educational experience and I recommend it to anyone wanting to learn more about how hardware works. Also, definitely check out Ben Eater's YT channel. It's a goldmine.