10 Programming in Assembly Language

In the previous chapters, you saw how computers can be programmed using 1s and 0s to represent the operations and the data, the machine language. Now we’ll move on to programming at the machine level, but instead of using machine language, we’ll use assembly language. Assembly language uses a short mnemonic for each machine language instruction. We’ll use an assembler program to translate the assembly language into the machine language instructions that control the computer.

Creating a program in assembly language is similar to creating one in a higher-level compiled language like C, C++, Java, or FORTRAN. ...

Get Introduction to Computer Organization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.