From the course: Advanced C Programming: Integrating C and Assembly Language

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Controlling the CPU with assembly and C

Controlling the CPU with assembly and C

- [Instructor] The computer's processor doesn't understand English or any human language. You would think the processor understands programming languages, but no. The processor doesn't speak this type of language either. Languages like Python and Java are considered high level. Even C, which is a mid-level language isn't something the processor understands. At the lowest level of programming languages, you find assembly, but even then, the processor doesn't speak this language, cryptic and crude as it is. No, the processor speaks machine code. Machine code are values, one or several bites, that direct the processor to do something. Assembly language is often called shorthand for machine code, as many assembly instructions translate directly into machine code. Even if you program in C, Python, Java, or any high level language, your code is translated, compiled or interpreted into machine code. Machine code is the only…

Contents