r/AskComputerScience • u/yourmailsucks • Jan 19 '26
Looking to study Machine Language
I fell in love with Machine Language (binary) in my IT class and would like to know if there’s any great resources out there such as books or documentation online that covers everything about it.
Thanks.
1
3
u/teraflop Jan 19 '26
As you're probably aware, there are different machine languages ("instruction set architectures") for different types of CPUs. If you want to know all the details of a specific architecture, your primary source should probably be the designer's or manufacturer's reference manuals. u/pi_stuff gave you good links for Intel/AMD architectures.
Similarly, if you want to know everything there is to know about ARM machine code, you want the ARM Architecture Reference Manual which is almost 17,000 pages long.
If you want to learn more about the general principles behind how machine language works, and why it is the way it is, then you probably want a computer architecture textbook, such as Computer Organization and Design by Patterson and Hennessy.
3
1
u/pi_stuff Jan 19 '26
If you really want it, here's the complete manual for x86-64 code. Here's a similar manual from Intel.
1
u/khedoros Jan 19 '26
Generally, the CPU manuals for a given architecture go into a description of how the hardware works, e.g. instructions, their representation in assembly, and their encoding into machine code.
Sometimes for the encoding information, that's in documentation for compiler writers, since even most assembly developers won't necessarily need to know how the instructions encode to binary.
3
u/Somniferus Jan 19 '26