Nepedia
Back to Discover
Independent Reader
💻

Machine code

technology Maturity 11-13 Next article →

Computers need instructions to work. They use a special type of data called machine code.

Machine language and assembly language
Machine language and assembly language

This code is the language a CPU uses directly. The CPU is the central processing unit. It is the part of the computer that follows instructions.

Machine code tells the CPU to do specific tasks. It can tell the CPU to move data from one place to another. It can also tell the CPU to do math. Some instructions tell the CPU to jump to a new task.

W65C816S Machine Code Monitor
W65C816S Machine Code Monitor

Writing in machine code is very hard for people. It is mostly made of patterns of bits. Instead, people often use assembly language. Assembly language uses short words to represent the numbers in machine code.

Different families of computers use different sets of instructions. This is called an instruction set architecture, or ISA. An ISA tells the CPU how to act. Because of this, code for one type of CPU might not work on another. Some special computers can run more than one type of code. Most machine code is stored in RAM while it is running.

180 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:W65C816S Machine Code Monitor.jpeg
W65C816S Machine Code Monitor.jpeg
File:Machine language and assembly language.jpg
Machine language and assembly language.jpg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.