4 ms·
That looks like 6502 but it doesn't have ADD, only ADC. I prefer the Z80 though. :-) I also think starting with Asm is a good idea, because it forces you to th
by userbinator 11y ago
That looks like 6502 but it doesn't have ADD, only ADC. I prefer the Z80 though. :-)
I also think starting with Asm is a good idea, because it forces you to think about things like data representation (often glossed over in HLLs) and breaking down complex operations into a series of simple steps - something that you have to internalise effectively to become good at programming. If there is time for it, going one step lower to logic gates would be even better to dispel the "magic" and see that CPUs are actually very conceptually simple and logical machines.
Of course to become productive they should move to a HLL and learn the higher-level organisation (functions/procedures, objects, ...) but I agree that the basics are important to understand first.
This is a book I strongly recommend, it's definitely written at a level readable for kids and young adults:
https://en.wikipedia.org/wiki/Code:_The_Hidden_Language_of_Computer_Hardware_and_Software https://en.wikipedia.org/wiki/Code:_The_Hidden_Language_of_C...