Unit summary

  • An instruction code has a mode bit, an opcode and an address; the basic computer uses 16-bit words with a 12-bit address.
  • The basic computer has the registers PC, AR, IR, DR, AC, TR, INPR and OUTR.
  • Memory-reference, register-reference and input-output are the three types of instruction.
  • A sequence counter and decoders produce the timing signals T0 to T15 and the decoded signals D0 to D7.
  • The instruction cycle consists of fetch, decode, indirect address and execute.
  • The seven memory-reference instructions are AND, ADD, LDA, STA, BUN, BSA and ISZ.
  • The interrupt cycle saves the return address at location 0 and starts the service routine at location 1.
  • A common bus connects the registers, and the accumulator logic forms the input of the AC.
  • A CPU can have general registers selected by multiplexers, and a stack for last-in first-out storage.
  • Instruction formats range from three-address to zero-address; addressing modes find the effective address of the operand.
  • Instruction sets contain data transfer, data manipulation and program control instructions.
  • RISC uses few simple instructions with load and store memory access; CISC uses many complex ones.

Glossary

Term Meaning
Accumulator The main register for arithmetic and logic.
Addressing mode The rule for finding the effective address from the address field.
CISC Computer design with many complex instructions.
Common bus Shared lines through which registers and memory exchange data.
Control word Bits that select the operands, result and operation of a micro-operation.
Effective address The address of the operand actually used.
Instruction code Bits that specify an operation and its operand.
Instruction cycle Fetch, decode and execute steps repeated for every instruction.
Interrupt A signal that makes the CPU temporarily run a service routine.
Memory-reference instruction Instruction that operates on a word in memory.
Opcode The part of an instruction that names the operation.
Program counter Register holding the address of the next instruction.
Register-reference instruction Instruction that operates on registers only.
Reverse Polish notation Notation in which the operator follows its operands.
RISC Computer design with few simple instructions.
Sequence counter A counter that produces the timing steps of an instruction.
Stack Last-in first-out storage.
Stack pointer Register that holds the address of the top of the stack.
Status register Register that holds the flags carry, sign, zero and overflow.
Subroutine A group of instructions that can be called from different places.

Question bank

Short Answer Questions (2 marks each)

  1. What is an instruction code?
  2. Name any four registers of the basic computer.
  3. What is the function of the sequence counter?
  4. State the four phases of the instruction cycle.
  5. What does the instruction BSA do?
  6. What is the effective address?
  7. What is a stack pointer?
  8. Write A * B + C in reverse Polish notation.
  9. Name the four status flags.
  10. State two features of RISC.

Medium Answer Questions (5 marks each)

  1. Explain the instruction format and registers of the basic computer.
  2. Describe the fetch and decode steps of the instruction cycle.
  3. Explain the memory-reference instructions.
  4. Explain the interrupt cycle of the basic computer.
  5. Explain stack organisation with push and pop operations.
  6. Explain any five addressing modes with an example.

Long Answer Questions (15 marks each)

  1. Explain the instruction cycle of the basic computer in detail, with register transfers and a flowchart. Trace the execution of a short program.
  2. Describe the complete basic computer: its registers, common bus, control unit and the design of the accumulator logic.
  3. Explain general register organisation and stack organisation. Describe the instruction formats using X = (A + B) * (C + D) as an example.
  4. Explain data transfer, data manipulation and program control instructions. Compare RISC and CISC computers.

Sources

  • Official BCA syllabus Computer Architecture, course code 25BCA401DS02, Unit III