Lesson Plan

Lesson Plan
Grade: Date: 17/01/2026
Subject: Computer Science
Lesson Topic: Show understanding of and be able to use different modes of addressing
Learning Objective/s:
  • Describe the purpose of different addressing modes in assembly language.
  • Identify the appropriate addressing mode for given data‑access scenarios.
  • Calculate effective addresses using base, index, scale, and displacement.
  • Translate simple C data accesses into assembly using correct addressing modes.
  • Evaluate the impact of addressing‑mode choice on program size and speed.
Materials Needed:
  • Projector and screen for slides
  • Whiteboard and markers
  • Computer with an IDE/assembler (e.g., MARS, Keil, or online emulator)
  • Handout with addressing‑mode table and example code
  • Sample C code snippets for translation exercise
  • Worksheets for effective‑address calculations
Introduction:
Begin with a quick demonstration of the same operation written using different addressing modes, asking students to guess which will be fastest. Recall that students already know basic register and memory concepts from previous lessons. Today they will be able to select and apply the correct addressing mode for array and structure accesses and demonstrate this by translating C snippets into assembly.
Lesson Structure:
  1. Do‑now (5') – Short quiz on register vs. memory operands.
  2. Mini‑lecture (15') – Overview of common addressing modes with examples and the EA formula.
  3. Guided practice (15') – Calculate effective addresses for array and struct examples on the board.
  4. Hands‑on activity (20') – In pairs, translate given C snippets into assembly using appropriate modes; teacher circulates.
  5. Check for understanding (10') – Quick poll/exit ticket where each pair states the mode chosen and why.
  6. Summary & reflection (5') – Recap key criteria for mode selection.
Conclusion:
Summarize how choosing the right addressing mode optimizes code size and speed. Collect exit tickets where students list one scenario for each of three modes. For homework, assign translation of a short program with arrays and structures to reinforce the skill.