BSA: Branch and Save Return Address -subroutine call

Rating - 3/5

The BSA instruction performs the function usually referred to as a subroutine call. The indirect BUN instruction at the end of the subroutine performs the function referred to as a subroutine return. In most commercial computers, the return address associated with a subroutine is stored in either a processor register or in a portion of memory called a stack. This is discussed in more detail in Sec. 8-7.

BSA: Branch and Save Return Address -subroutine call








It is not possible to perform the operation of the BSA instruction in one clock cycle when we use the bus system of the basic computer. To use the memory and the bus properly, the BSA instruction must be executed With a sequence of two microoperations:

These Topics Are Also In Your Syllabus BSA: Branch and Save Return Address -subroutine call
1 Types of Operating Systems - Batch operating system, Time-sharing systems, Distributed OS, Network OS, Real Time OS link
2 Arithmetic Logic Shift Unit link
You May Find Something Very Interesting Here. BSA: Branch and Save Return Address -subroutine call link
3 Instruction Codes link
4 operation code link
5 Stored Program Organization link

D5T4: M[AR] <-- PC, AR <-- AR + 1

D5T5: PC <-- AR, SC <-- 0

Timing signal T4 initiates a memory write operation, places the content of PC onto the bus, and enables the INR input of AR . The memory write operation is completed and AR is incremented by the time the next clock transition occurs. The bus is used at T5 to transfer the content of AR to PC .


Rating - 3/5