BSA: Branch and Save Return Address -subroutine call

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:

Topics You May Be Interested InBSA: Branch and Save Return Address -subroutine call
Alphanumeric Representation Some Applications Hardware Implemntation
Fixed-point Representation Indirect Address
Overflow Common Bus System
Decimal Fixed-point Representation Instruction Cycle
Binary Adder-subtractor Memory-reference Instructions

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