3 ms·
Great! I love being incorrect, it's always a good opportunity to learn. Could you please show me a C program live-diagrammed like the following CPU: http://www
by innguest 11y ago
Great! I love being incorrect, it's always a good opportunity to learn.
Could you please show me a C program live-diagrammed like the following CPU: http://www.visual6502.org/JSSim/index.html http://www.visual6502.org/JSSim/index.html
Since they are basically the same and I was just abstracting away what was convenient to me. Hey, if I'm wrong, I'm wrong.
I think there's a difference. The reason we can make a live diagram like that for CPUs is that they don't care about the "state" they operate, and hence are immune from problems therefrom. C programs care about the state they operate (they take conditional jumps on expressions that might be null pointers) but CPUs don't. Every branch test the CPU runs is for sure run over a register and for sure will either succeed or fail, there's no third choice, no bottom, no chance of it going wrong.