Zusammenfassung der Ressource
Assembly Language
- uses mnemonics to represent the
operation codes and addresses.
- assembler then translates the assembly language
program into machine code for execution
- assembler translates assembly language into
binary
- BRP
- branch if positive ->if the answer = a
positive number then it'll branch / go
to a different part of the code
- BRZ
- branch if zero -> if the answer = 0 ->
jump to a specified line in the code
- BRA
- will branch whatever the value held
in the acc
- ADDRSSING
MODES
- IMMEDIATE
- The operand is the actual
value
- DIRECT
- operand holds memory address
of the value to be operated on.
-> only addressing mode used in
the LMC
- INDIRECT
- operand is the location (typically a register)
which holds the address of the data we want. ->
enable a larger range of addressable locations.
- INDEXED
- address of operand is obtained by
adding to the contents of an index
register -> a constant value.
- The number of the index register and the constant
value are included in the instruction code,
- used to access an array whose
elements are in successive memory
locations.
- OPCODE
- OPERAND CODE
- specifies the data or memory location of
the data on which the operation will be
performed
- specifies the operation to be
performed by the instruction