liveBook · Manning

Machine instruction

A machine instruction is an operation encoded for direct execution by a processor according to its instruction set.

How 2 Manning books explain it

Modern C

A machine instruction is a processor-level operation encoded for execution by a particular instruction set.

How it is used
Connects C code to processor operations through assembler output.
How deep it goes
Explains registers, memory, labels, and one instruction concretely without descending into complete processor internals.
Examples
Uses `movl $0, -16(%rbp)` and a complete assembler version of the `fgoto` function.
What you can do after
Understand how assembler instructions represent C operations on registers, memory, labels, and control flow.

Read how Modern C explains machine instruction →

Rust in Action: Systems programming concepts and techniques

An instruction is an encoded command that a processor can fetch and execute, including commands expressed in assembly language.

How it is used
Uses machine instructions to reveal CPU operation and build a small CHIP-8 emulator directly in hexadecimal.
How deep it goes
Builds from one addition instruction through opcode decoding and dispatch, stopping at a minimal CPU without memory.
Examples
Demonstrates CHIP-8 opcode 0x8014, register addition, opcode-field extraction, and a CPU decoding loop.
What you can do after
Builds a minimal CPU emulator that loads registers, decodes hexadecimal instructions, and executes an addition operation.

Read how Rust in Action: Systems programming concepts and techniques explains machine instruction →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.