Professional Documents
Culture Documents
AR101 - BSIT
Computer Architecture and Organization
At the end of the session, the students should be
able to:
• Apply fast Multiplication Technique.
• Differentiate the hardware circuitry of Integer Division.
• Differentiate single-precision and double-precision of
floating-point numbers.
• Apply Arithmetic Operations in floating point numbers.
2
CC101 - INTRODUCTION TO COMPUTING
Week 10 - The Arithmetic Unit (Part 3)
Multiplication Algorithm
• A multiplication algorithm is an algorithm (or method)
to multiply two numbers. Depending on the size of the numbers,
different algorithms are used. Efficient multiplication algorithms have
existed since the advent of the decimal system.
Multiplication Algorithm
Some chips implement long multiplication, in hardware or in microcode, for various
integer and floating-point word sizes. In arbitrary-precision arithmetic, it is
common to use long multiplication with the base set to 2w, where w is the number of
bits in a word, for multiplying relatively small numbers.
To multiply two numbers with n digits using this method, one needs
about n2 operations. More formally: using a natural size metric of number of digits,
the time complexity of multiplying two n-digit numbers using long multiplication
is Θ(n2).
4
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Multiplication Algorithm
When implemented in software, long multiplication algorithms must deal with
overflow during additions, which can be expensive. A typical solution is to
represent the number in a small base, b, such that, for example, 8b is a
representable machine integer.
Several additions can then be performed before an overflow occurs. When the
number becomes too large, we add part of it to the result, or we carry and map the
remaining part back to a number that is less than b. This process is
called normalization
5
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Multiplication Algorithm
Computers used a "shift and add" algorithm to multiply small integers. Both base
2 long multiplication and base 2 peasant multiplication reduce to this same
algorithm.
In base 2, multiplying by the single digit of the multiplier reduces to a simple series
of logical AND operations. Each partial product is added to a running sum as soon
as each partial product is computed.
Fast Multiplication
7
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Bit-Pair Recording
8
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Bit-Pair Recording
9
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
A. 0 1 1 0 1
B. 1 0 1 1 1
C. 0 1 1 1 0
10
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
11
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Integer Division
• Longhand division examples
12
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Restoring Division
• The logic circuit arrangement
that implements restoring-
division technique is shown
below:
13
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Restoring Division
Example
14
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Non-Restoring Division
• If A is positive, we shift left and subtract M; that is, we perform 2A –
M.
15
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Non-Restoring
Division Example
16
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
17
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
• By convention, when the decimal point is placed to the right of the first (nonzero)
significant digit, the number is said to be normalized.
18
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
19
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Examples
20
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
21
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
Examples
• Example # 1:
• Example # 2:
22
AR101 - Computer Architecture and Organization
Week 10 - The Arithmetic Unit (Part 3)
End of Lesson…
References:
[2] Williams, Stallings (2010), Computer Organization and Architecture: Designing for Performance (8 th Edition, Prentice Hall, New Jersey).
[3] Stalling, William, Computer Organization and Architecture: Principles of Structure and Function (4th Edition)
23
AR101 - Computer Architecture and Organization
24
WEEK 11
ARITHMETIC INSTRUCTIONS
2
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
destination and then places the Register MM ADD DX, [BP + SI]
MM Register ADD [BX + DI], CX
result in the destination
Register Immediate ADD BX, 0015H
operand.
MM Immediate ADD byte ptr BETA, 12H
• Format: ADD D, S
• Action: D [D] + [S]
3
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
ADD AX,BX
ADD [SI], DI
4
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Exercise # 1
• Unless otherwise stated, determine the contents of all the affected
general-purpose registers and memory addresses after executing the
following program. Each instruction is dependent of one another.
Whenever necessary, use the memory map (handout) for additional
data. Assume the following register contents and assume that all flags
are initially 0:
AX = 0015H BP = 0002H CS = 3000H
BX = 0019H SP = 0035H DS = 2000H
CX = 0012H DI = 0017H SS = 2000H
DX = 001BH SI = 001EH ES = 4000H
• Format: ADC D, S
• Action: [D] [D] + [S] + [CF]
7
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Exercise # 2
Unless otherwise stated, determine the AX = 0015H BP = 0002H CS = 3000H
contents of all the affected general- BX = 0019H SP = 0035H DS = 2000H
purpose registers and memory
addresses after executing the following CX = 0012H DI = 0017H SS = 2000H
program. Each instruction is dependent DX = 001BH SI = 001EH ES = 4000H
of one another. Whenever necessary,
use the memory map (handout) for
additional data. Assume the following
register contents and assume that all
flags are initially 0:
Format: INC D
Action: D [D] + 1
9
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
INC AX
INC BX
INC CX
INC DX
10
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Format: DAA
Example:
MOV AL, 15H
MOV BL, 15H
ADD AL, BL
DAA
11
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Format: AAA
Example:
MOV AL, 35H ASCII value of 5
MOV BL, 34H ASCII value of 4
ADD AL, BL
AAA
13
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
and then places the result in the Register MM SUB DX, [BP + SI]
MM Register SUB [BX + DI], CX
destination operand.
Register Immediate SUB BX, 0015H
MM Immediate SUB byte ptr BETA, 12H
Format: SUB D, S
Action: D [D] - [S]
15
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
SUB AX, BX
SUB [SI], DI
16
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Format: SBB D, S
Action: [D] [D] - [S] - [CF]
17
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
MOV AX,7AFAH
MOV BX, LIST
SUB AX, BX
SBB SI, DI
18
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Format: DEC D
Action: D [D] - 1
19
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
20
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
22
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
Format: AAS
Example:
MOV AL, 39H ASCII value of 9
MOV BL, 34H ASCII value of 4
SUB AL, BL
AAS
23
AR101 - Architecture and Organization
WEEK 11 - ARITHMETIC INSTRUCTIONS
24
AR101 - Architecture and Organization
25
WEEK 12
LOGIC INSTRUCTIONS
2
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
NEG INSTRUCTION
• The NEG (Negate) instruction Destination Example
• Format: INC D
• Action: D 0 – [D]
3
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
4
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
5
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
CMP AX,BX
CMP [SI], DI
6
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
7
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
and the destination operand and Register MM AND DX, [BP + SI]
MM Register AND BETA, CX
stores the result in the destination
Register Immediate AND BX, 0015H
operand.
MM Immediate AND byte ptr BETA, 12H
Format: AND D, S
Action: D [D] · [S]
8
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
9
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
The OR Instruction
The AND (Logical OR) instruction Destination Source Example
Format: OR D, S
Action: D [D] + [S]
10
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
Example – OR Instruction
Determine the value of affected registers and the value of all flags
(assume all flags are initially 0) following the instruction sequence:
11
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
and the destination operand and Register MM XOR DX, [BP + SI]
MM Register XOR BETA, CX
stores the result in the destination
Register Immediate XOR BX, 0015H
operand.
MM Immediate XOR byte ptr BETA, 12H
Format: OR D, S
Action: D [D] [S]
12
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
13
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
Format: NOT D
Action: D [D]’
14
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
15
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
Format: TEST D, S
Action: [D] · [S]
16
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
17
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
18
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
WEEK 12 - LOGIC INSTRUCTIONS
19
AR101 - COMPUTER ARCHITECTURE AND ORGANIZATION
20
WEEK 13
SHIFT AND ROTATE INSTRUCTIONS
• Shift Instructions can also be classified by the direction of the shift (i.e., shift
to the left or shift to the right).
• Thus, there are four types of shift instructions: shift logical left (SHL), shift
logical right (SHR), shift arithmetic left (SAL), shift arithmetic right (SAR).
3
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
0
CF Operand
4
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
Example # 1:
MOV AL, 04H
SHL AL, 1
Example # 2:
MOV AL, 02H
MOV AL, 03H
SHL AL, CL
5
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
6
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
0
Operand CF
7
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
Example # 1:
MOV AL, 05H
SHR AL, 1
Example # 2:
MOV AL, 20H
MOV AL, 03H
SHR AL, CL
8
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
9
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
10
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
Example # 1:
MOV AL, FCH
SAR AL, 1
Example # 2:
MOV AL, 19H
MOV AL, 03H
SAR AL, CL
11
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
12
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
can be classified by the direction of the rotate (rotate to the left or rotate to the
right).
17
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
vROL instruction
vROR instruction
vRCL instruction
vRCR instruction
18
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
19
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
21
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
Exercise
Execute the following instructions. Assume that each instruction is dependent of
one another. Assume that all flags are initially zero.
23
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
24
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
26
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
Example # 1:
MOV AL, 04H
Example – RCR Instruction
RCR AL, 1
Assume that CF = 1. After execution, AL = 82H. The flags will be:
CF = 0, OF = 1
Example # 2:
MOV AL, 55H
MOV AL, 03H
RCR AL, CL
Assume that CF = 0. After execution, AL = 4AH. The flags will be:
CF = 1, OF = undefined
27
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
29
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 13 - SHIFT AND ROTATE INSTRUCTIONS
2
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
1. The processor first sends the address of the memory location to be read.
2. The processor then issues or sends the read signal to the memory.
3. The word is then read out from the memory and is loaded to a processor
internal register.
4
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
1. The processor first sends the address of the memory location to be written.
2. The processor then sends the write signal together with the word to be
written to the memory.
5
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
PC R0
R1
IR … ALU
…
…
n is a general-purpose
Rn-1 register
6
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Operating Steps
1. PC is set to point to the first instruction of the program.
2. The content of the PC are transferred to the MAR and a read signal is sent to
the MM.
3. The address word is read out of MM and loaded to the MDR.
4. The contents of the MDR are transferred to IR. The instruction is ready to be
decoded and executed.
5. During the Execution: the contents of the PC are incremented or updated to
point to the next instruction.
7
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
1. It will have to be fetched by sending it’s address to the MAR and initiating a
read cycle.
2. When an operand has been read from the Main Memory into the MDR, it
may be transferred from the MDR to the ALU.
8
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
9
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
10
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
11
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Processor Operations
With a few exceptions, an instruction can be executed by performing one or
more of the following operations in some specified sequence:
1. Transfer a word of Data from one processor register to another or to the ALU.
2. Perform an arithmetic or logic operation and store a result in a processor
register.
3. Fetch the content of a given memory location and load them into a processor
register.
4. Store a word of data from a processor register into a given memory location.
12
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Register Transfers
To enable data transfer between various blocks in a common data bus, input,
and output gating must be provided. The input and output gates for Register Ri
are controlled by the Ri(in) and Ri(Out) respectively.
Ri(in)
Ri
Ri(Out)
13
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Example
Given:
R4 [R1]
describe the steps and control signals needed to execute the Instruction
Enable the output gate of register R1 by setting R1(Out) to 1. Then place the
contents of R1 on the processor bus.
Enable the input gate of register R4 by setting R4(in) to 1. This loads data from the
processor bus into Register R4.
14
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Select MUX
A B
ALU
Zin
Z
ZOut
15
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Example:
R3 [R1] + [R2]
1. R1(out), Yin
2. R2(Out), Select Y, Add, Z(in)
3. Z(out), R3(in)
16
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 14 - THE PROCESSING UNIT (PART 1)
Examples
Determine the control sequence of the following instructions using the single-
bus organization.
1. PC [PC] + 1
2. R1 [Y] + [R1]
3. Y [R1] + [PC] + [R2]
2
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
4
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Interfaces
• Interface is a shared boundary btween two separate components of the computer
system which can be used to attach two or more components to the system for
communication purposes.
There are two types of interface:
• CPU Inteface
• I/O Interface
6
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Input-Output Interface
• Peripherals connected to a computer need special communication links for
interfacing with CPU. In computer system, there are special hardware
components between the CPU and peripherals to control or manage the input-
output transfers. These components are called input-output interface
units because they provide communication links between processor bus and
peripherals. They provide a method for transferring information between internal
system and input-output devices.
7
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
8
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
9
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
10
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
12
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Branching
• Branching is accomplished by replacing the current contents of the PC by the
branch address, That is, the address of the instruction to which branching is
required.
13
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Branching
• Branching instructions refer to the act of switching execution to a different
instruction sequence as a result of executing a branch instruction.
The three types of branching instructions are:
• Jump (unconditional and conditional)
• Call (unconditional and conditional)
• Return (unconditional and conditional)
14
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Jump Instruction
• The jump instruction transfers the program sequence to the memory address
given in the operand based on the specified flag. Jump instructions are 2 types:
• (a) Unconditional Jump Instructions: Transfers the program sequence to the
described memory address.
15
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Jump Instruction
• (b) Conditional Jump Instructions: Transfers the program sequence to the
described memory address only if the condition in satisfied.
16
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Call Instruction
• The call instruction transfers the program sequence to the memory address given
in the operand. Before transferring, the address of the next instruction after CALL
is pushed onto the stack. Call instructions are 2 types:
• (a) Unconditional Call Instructions: It transfers the program sequence to the
memory address given in the operand.
17
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Call Instruction
• (b) Conditional Call Instructions: Only if the condition is satisfied, the instructions
executes.
18
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Return Instruction
• The return instruction transfers the program sequence from the subroutine to the
calling program. Return instructions are 2 types:
• (a) Unconditional Return Instruction: The program sequence is transferred
unconditionally from the subroutine to the calling program.
19
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Return Instruction
• (b) Conditional Return Instruction: The program sequence is transferred
unconditionally from the subroutine to the calling program only is the condition is
satisfied.
20
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
Unconditional Branching
21
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
22
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
23
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
24
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
25
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
26
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
WEEK 15-16 - THE PROCESSING UNIT (PART 2)
27
AR101 - ARCHITECTURE AND COMPUTER ORGANIZATION
28