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)
- What is an instruction code?
- Name any four registers of the basic computer.
- What is the function of the sequence counter?
- State the four phases of the instruction cycle.
- What does the instruction BSA do?
- What is the effective address?
- What is a stack pointer?
- Write A * B + C in reverse Polish notation.
- Name the four status flags.
- State two features of RISC.
Medium Answer Questions (5 marks each)
- Explain the instruction format and registers of the basic computer.
- Describe the fetch and decode steps of the instruction cycle.
- Explain the memory-reference instructions.
- Explain the interrupt cycle of the basic computer.
- Explain stack organisation with push and pop operations.
- Explain any five addressing modes with an example.
Long Answer Questions (15 marks each)
- Explain the instruction cycle of the basic computer in detail, with register transfers and a flowchart. Trace the execution of a short program.
- Describe the complete basic computer: its registers, common bus, control unit and the design of the accumulator logic.
- Explain general register organisation and stack organisation. Describe the instruction formats using X = (A + B) * (C + D) as an example.
- 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
