Low Level Languages Flashcards
Explain the term low level language.
- Machine oriented language
- Related to the design of the computer
- Includes assembly language/machine code
- May use labels for addresses
- May use mnemonics for operations
Explain the term opcode.
The mnemonic part of an instruction indicating what is to be done.
Explain the term operand.
- address field (in an instruction)
- it holds data…
- to be used by the operation given in the opcode
- eg in ADD 12, “12” is the operand
Describe immediate addressing.
- used in assembly language
- uses data in address field…
- … as a constant
(data to be used is in address field)
Describe direct addressing.
- the simplest/most common method of addressing
- uses the (data in) the address field…
- …without modification
- eg In ADD 23, use the number stored in address 23 for the instruction
Explain why registers are used rather than RAM.
- faster to access than Random Access Memory
- used for specific purposes…
- …which involve frequent access
Describe the use and purpose of the program counter.
- contains address of next (machine code) instruction
to be executed - during fetch execute cycle..
- …contents of PC are copied to MAR
- …PC is incremented
- for a jump instruction, address from CIR is put into
PC
Explain how and why the Index Register is used.
- used in indexed addressing
- stores a number used to modify an address…
- … which is given in an instruction
- allows efficient access to a range of memory locations/by incrementing the value in the IR
- eg used to access an array
What language uses mnemonics?
assembly language
What language uses only binary code?
machine code
What language uses relative addresses?
assembly language
What language uses local variables?
high level language
What languages need translation before the program can be executed?
assembly and high level language
What language may be translated into intermediate code?
high level language
Describe indirect addressing.
- uses the address field as a vector/pointer…
- …to the address to be used
- used to access library routines
- eg In ADD 23, if address 23 stores 45, address 45 holds
the number to be used