6. Assembly language programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does an instruction contain?

A

Opcode (8 bits) and operand (16 bits). Every opcode mnemonic has its own opcode binary, eg. IN - 0001 0000, INC - …, JPN - …., END - 1111 11111

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

What kinds of addressing modes are there?

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

What two opcodes are provided for I/O commands?

A
  1. IN (with no operands)
  2. OUT (with no operands)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are assembly language instructions categorized?

A
  1. Data movement
  2. Input/Output
  3. Jump
  4. Compare
  5. Arithmetic
  6. Shift
  7. Logical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What 3 main flags are used in status register?

A
  1. Carry flag, identified as C
  2. Negative flag, identified as N,
  3. Overflow flag, identified as V
How well did you know this?
1
Not at all
2
3
4
5
Perfectly