6. Assembly language programming 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
2
Q
What kinds of addressing modes are there?
A
- Immediate
- Direct
- Indirect
- Indexed
3
Q
What two opcodes are provided for I/O commands?
A
- IN (with no operands)
- OUT (with no operands)
4
Q
How are assembly language instructions categorized?
A
- Data movement
- Input/Output
- Jump
- Compare
- Arithmetic
- Shift
- Logical
5
Q
What 3 main flags are used in status register?
A
- Carry flag, identified as C
- Negative flag, identified as N,
- Overflow flag, identified as V