The Computer (= the CPU) can
execute
3 types of
instructions
The
basic types of
instructions
that the CPU (= computer)
can execute are:
- Data
moving (copying)
instructions:
- Transfer (= copy)
data between
a (general
purpose) register
and 1,2 or 4 memory bytes
|
-
Arithmethic/logic/shift
instructions:
- Performs an
arithmethic/logic/shift
operation on some
operands in
registers
and store the result in
a
register
|
-
Branching
instructions:
- Updates the
program counter causing
the program execution to
"jump/branch"
(out-of-order program flow !)
|
|
Note:
for brevity,
from now on
"register" means:
general purpose register
(unless stated otherwise) !