3.4 Assembly Language Flashcards

1
Q

Assembly language

A
  • Uses mnemonics to represent the operation codes and addresses
  • Typically 2, 3, 4 character mnemonics are used to represent all the machine code instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Assembler

A

Translates the assembly language program into the machine code for execution

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

How can the flow of the program be changed?

A

Different conditionals

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

Give some examples of conditional

A
  • BRP
  • BRA
  • BRZ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why can’t the same assembly language be used for different CPU’s?

A

CPU’s have slightly different forms of assembly language

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

What determines the addressing mode

A

The 2 bits in the opcode

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

4 different types of addressing modes

A
  • Immediate
  • Direct
  • Indirect
  • Indexed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Immediate addressing

A

Operand is the actual value to be operated on

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

Direct adressing

A

The operand holds the memory address of the value to be operated on

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

Indirect addressing

A

Operand is usually the location (typically a register) which holds the address of the data that needs to be used

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

Indexed addressing

A

The address of the operand is obtained by adding to the contents of a general register a constant value

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