大象传媒

Programming languages and Integrated Development Environments - OCRLow level languages - assembly language

Translators are needed to translate programs written in high level languages into the machine code that a computer understands. Tools exist to help programmers develop error-free code.

Part of Computer ScienceComputational thinking, algorithms and programming

Low level languages - assembly language

sits between and . While high level languages use to form , assembly language uses (short abbreviations). Each mnemonic directly corresponds with a machine code instruction. As a result, assembly language is known as a one-to-one language. Here are some examples of mnemonics:

MnemonicAction
LDALoads a value from a memory address
STAStores a value in a memory address
ADDAdds the value held in a memory address to the value held in the accumulator
SUBSubtracts from the accumulator the value held in a memory address
MOVMoves the contents of one memory address to another
MnemonicLDA
ActionLoads a value from a memory address
MnemonicSTA
ActionStores a value in a memory address
MnemonicADD
ActionAdds the value held in a memory address to the value held in the accumulator
MnemonicSUB
ActionSubtracts from the accumulator the value held in a memory address
MnemonicMOV
ActionMoves the contents of one memory address to another

In assembly language, programmers write programs as a series of mnemonics. Mnemonics are much easier to understand and than machine code, giving programmers a simpler way of directly controlling a computer.

Writing in mnemonics is easier for programmers because they are usually brief representations of the actual commands. They are quicker to write than or , and it is easier to spot mistakes.

Little Man Computer (LMC) is a simulation of a very basic processor using . It uses an example of simple assembly language that contains a limited set of mnemonic instructions which can be used to program simple assembly programs. LMC is freely available on the internet for students to use.