Please enable JavaScript.
Coggle requires JavaScript to display documents.
assembly language and LMC language (examples of mnemonics (STA (store),…
assembly language and LMC language
no matter what high level language you program in, they all have to be translated
high level languages are translated by either
compilers
interpreters
high level language translations produce object code into machine code
low level languages are translated by an assembler
it produces assembly code
low level languages are executed directly as machine code
each line of assembly code is translated by an assembler into a line of machine code
each line of assembly code contains an op code
this is the actual instruction
an operand is an item of data the instruction applies to
the assembly languages translate directly into machine code
examples of mnemonics
STA
store
LDA
load
BRA
branch always
BRZ
branch if zero
BRP
branch if positive
HLT
end program
each line of LMC code can have up to three parts
a label
the mnemonic
the data
the program counter always holds the address of the next instruction to be executed
each instruction in turn has to be fetched and decoded before it can be executed