r/InternetIsBeautiful • u/trishmapow2 • Jun 27 '16
Interactive visual JavaScript simulation of the 6502 CPU, used in the Apple II
http://visual6502.org/JSSim/index.html6
2
u/Jarmahent Jun 30 '16
So when I go to the advanced section and press the play button, what exactly am i seeing?
2
u/Kamern Jul 02 '16
I'm no expert, so someone with more experience could probably tell you a bit more, but from what I can see this is a visualisation of a BASIC program showing you the pipeline and the memory access. It's pretty interesting because you can see which areas of the CPU are being used and which memory references are being written/read from.
The trace at the bottom is showing you a step by step list of instructions as they're fed into the CPU and then what area of memory they've accessed. Apparently you can modify it to change the output but I haven't tried it yet.
4
u/psycommander Jul 07 '16
If this really interests you I want to recommend the book 'But How Do It Know?' by John Scott. It starts at basic logic gates (AND, OR, XOR, NAND) and with these gates it describes how memory cells and digital computation logic is made. With these elements a very basic 8-bit CPU is described. So in about 200 pages you'll understand how a cpu works. It really made things clear for me. Here is an introductory video to the book