Low Level Languages Flashcards

1
Q

Explain the term low level language.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the term opcode.

A

The mnemonic part of an instruction indicating what is to be done.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the term operand.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe immediate addressing.

A
  • used in assembly language
  • uses data in address field…
  • … as a constant

(data to be used is in address field)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe direct addressing.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain why registers are used rather than RAM.

A
  • faster to access than Random Access Memory
  • used for specific purposes…
  • …which involve frequent access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the use and purpose of the program counter.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain how and why the Index Register is used.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What language uses mnemonics?

A

assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What language uses only binary code?

A

machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What language uses relative addresses?

A

assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What language uses local variables?

A

high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What languages need translation before the program can be executed?

A

assembly and high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What language may be translated into intermediate code?

A

high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe indirect addressing.

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly