Computer Organisation and Architecture - Vol 2 | 4. Instruction: Procedure CALL/RETURN by Abraham | Learn Smarter
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

4. Instruction: Procedure CALL/RETURN

4. Instruction: Procedure CALL/RETURN

The chapter elaborates on the procedures in computer programming, focusing on the mechanics of calling and returning from procedures in a modular programming context. It discusses the roles of the stack, program counter, and program status word in managing the call context, particularly during nested procedure calls. Key concepts such as unconditional jumps and the importance of saving context in the stack are emphasized for understanding procedure manipulation in CPU architecture.

9 sections

Enroll to start learning

You've not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Sections

Navigate through the learning materials and practice exercises.

  1. 4.1
    Computer Organization And Architecture A Pedagogical Aspect

    This section discusses the concepts of procedure call and return in computer...

  2. 4.1.1
    Instruction: Procedure Call/return

    This section covers the concepts and processes involved in procedure calls...

  3. 4.1.2
    Unit Summary

    The unit summarizes key concepts of procedure calls and returns in computer...

  4. 4.1.3
    Unit Objectives

    This section outlines the key objectives of Unit 1.3, focusing on the...

  5. 4.1.4
    Example Of C Program With Subroutine

    This section delves into the practical use of procedural calls and returns...

  6. 4.1.5
    Components Required In Cpu For Procedure Call

    This section discusses the critical components and processes involved in CPU...

  7. 4.1.6
    Importance Of Stack In Procedure Call

    This section discusses the significance of the stack in the execution flow...

  8. 4.1.7
    Implementation Of Stack In Main Memory

    This section explores how stacks are utilized in implementing procedure...

  9. 4.1.8
    Components Of Cpu And Their Importance

    This section discusses the essential components of the CPU involved in...

What we have learnt

  • Procedures are self-contained segments of code that necessitate jumps to specified memory locations during execution.
  • Unconditional jumps are common for calling procedures, while conditional jumps may be employed based on specific program states.
  • The stack plays a crucial role in preserving the execution context, allowing for nested procedure calls and returns in an organized manner.

Key Concepts

-- Procedure Call
A procedure call is a method for invoking a subroutine, transferring control to that subroutine and retaining the previous execution state in the stack.
-- Stack
A stack is a data structure used to store the context of function calls, including the program counter, program status word, and variables to facilitate correct returns from procedures.
-- Program Counter (PC)
The program counter is a register that holds the address of the next instruction to be executed, which must be saved when a procedure is called and restored upon return.

Additional Learning Materials

Supplementary resources to enhance your learning experience.