Instructions
are represented by binary numbers called operational codes, or OPCODES.
They are frequently written in hexadecimal. Different cpu's have different instructions. To make them easier to remember they are given names called mnemonics. Examples are ADD
add to the contents of the accumulator.
A program is a list of instructions, usually written using mnemonics. Here is the sequence of events for writing programs. Define the problem.
Below is a short program address
label operator
operand label
opcode
Labels can be
used instead of numbers, as a temporary measure, and replaced by the number
later.
|