Understanding how CPUs work
Would anybody recommend any resources useful in understanding how a CPU works (that is, how does it represent data, pointers, etc.) ?
How does assembly language relate to a CPUs?
Can't think of any specific resources, but a quick google search should bring you what you need.
The No Ma'am commandments:
1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
2.) It is wrong to be French
3.) It is O.K. to put all bad people in a giant meat grinder
4.) Lawyers, see rule 3
5.) It is O.K. to drive a gas guzzler if it helps you get babes
6.) Everyone should car pool but me
7.) Bring back the word 'stewardesses'
8.) Synchronized swimming is not a sport
9.) Mud wrestling is a sport
Assembly language is as close to the cpu you can get without resorting to machine code itself, ie, hex/binary. Compilers compile code to assembly which gets translated into binary.
Just google "how microprocessors work" for a lot of good sites.
Heres a few links for you:
Originally Posted by bjr87
Art Of Assembly Book
Chapter 2.7 is possably what your looking for:
Hope this helps.
Vi Veri Veniversum Vivus Vici.
June 16th, 2006, 01:11 AM
Art of Assembly is excellent for x86, but you really want a simple uP like MIPS to learn from. You'd probably find the CPU articles by Hannible (e.g. Pipelining 1&2) and the articles by Johan useful:
(sadly largely dead when Johan left, but search around)
If you are a more hands-on person, then you might find trying a few MIPS exercises useful (I'm sure you can find some tutorials to help). For that, you'll need a MIPS simulator: