SlideShare a Scribd company logo
Organisasi dan Arsitektur
Komputer
Ajeng Savitri Puspaningrum, M.Kom
Pertemuan 29
Instruction Set (Part 2)
 Learning Addressing Technique
Addressing Models
 Immediate
 Direct
 Indirect
 Register
 Register Indirect
 Displacement (Indexed)
 Stack
Immediate Addressing
 Operand is part of instruction
 Operand = address field
 e.g. ADD 5
 Add 5 to contents of accumulator
 5 is operand
 No memory reference to fetch data
 Fast
 Limited range
Immediate Addressing Diagram
OperandOpcode
Instruction
Direct Addressing
 Address field contains address of operand
 Effective address (EA) = address field (A)
 e.g. ADD A
 Add contents of cell A to accumulator
 Look in memory at address A for operand
 Single memory reference to access data
 No additional calculations to work out effective address
 Limited address space
Direct Addressing Diagram
Address AOpcode
Instruction
Memory
Operand
Indirect Addressing (1)
 Memory cell pointed to by address field contains the address
of (pointer to) the operand
 EA = (A)
 Look in A, find address (A) and look there for operand
 e.g. ADD (A)
 Add contents of cell pointed to by contents of A to accumulator
Indirect Addressing (2)
 Large address space
 2n where n = word length
 May be nested, multilevel, cascaded
 e.g. EA = (((A)))
Draw the diagram yourself
 Multiple memory accesses to find operand
 Hence slower
Indirect Addressing Diagram
Address AOpcode
Instruction
Memory
Operand
Pointer to operand
Register Addressing (1)
 Operand is held in register named in address filed
 EA = R
 Limited number of registers
 Very small address field needed
 Shorter instructions
 Faster instruction fetch
Register Addressing (2)
 No memory access
 Very fast execution
 Very limited address space
 Multiple registers helps performance
 Requires good assembly programming or compiler writing
 N.B. C programming
register int a;
 c.f. Direct addressing
Register Addressing Diagram
Register Address ROpcode
Instruction
Registers
Operand
Register Indirect Addressing
 C.f. indirect addressing
 EA = (R)
 Operand is in memory cell pointed to by contents of register
R
 Large address space (2n)
 One fewer memory access than indirect addressing
Register Indirect Addressing Diagram
Register Address ROpcode
Instruction
Memory
OperandPointer to Operand
Registers
Displacement Addressing
 EA = A + (R)
 Address field hold two values
 A = base value
 R = register that holds displacement
 or vice versa
Displacement Addressing Diagram
Register ROpcode
Instruction
Memory
OperandPointer to Operand
Registers
Address A
+
Relative Addressing
 A version of displacement addressing
 R = Program counter, PC
 EA = A + (PC)
 i.e. get operand from A cells from current location pointed to
by PC
 c.f locality of reference & cache usage
Base-Register Addressing
 A holds displacement
 R holds pointer to base address
 R may be explicit or implicit
 e.g. segment registers in 80x86
Indexed Addressing
 A = base
 R = displacement
 EA = A + R
 Good for accessing arrays
 EA = A + R
 R++
Combinations
 Postindex
 EA = (A) + (R)
 Preindex
 EA = (A+(R))
 (Draw the diagrams)
Stack Addressing
 Operand is (implicitly) on top of stack
 e.g.
 ADD Pop top two items from stack and add
Instruction Formats
 Layout of bits in an instruction
 Includes opcode
 Includes (implicit or explicit) operand(s)
 Usually more than one instruction format in an instruction set
Instruction Length
 Affected by and affects:
 Memory size
 Memory organization
 Bus structure
 CPU complexity
 CPU speed
 Trade off between powerful instruction repertoire and saving
space
Allocation of Bits
 Number of addressing modes
 Number of operands
 Register versus memory
 Number of register sets
 Address range
 Address granularity
Assembler
 Machines store and understand binary instructions
 E.g. N= I + J + K initialize I=2, J=3, K=4
 Program starts in location 101
 Data starting 201
 Code:
 Load contents of 201 into AC
 Add contents of 202 to AC
 Add contents of 203 to AC
 Store contents of AC to 204
 Tedious and error prone
Improvements
 Use hexadecimal rather than binary
 Code as series of lines
Hex address and memory address
 Need to translate automatically using program
 Add symbolic names or mnemonics for instructions
 Three fields per line
 Location address
 Three letter opcode
 If memory reference: address
 Need more complex translation program
Symbolic Addresses
 First field (address) now symbolic
 Memory references in third field now symbolic
 Now have assembly language and need an assembler to
translate
 Assembler used for some systems programming
 Compliers
 I/O routines
Refference
Stalling, William, Computer Organization
and Architecture, 10th Edition, Pearson,
2015
Abdurohman, Maman, Organisasi dan
Arsitektur Komputer revisi ke-4, Penerbit
Informatika, 2017
Terima Kasih
ajeng.savitri@teknokrat.ac.id
https://teknokrat.ac.id/en/
https://spada.teknokrat.ac.id/

More Related Content

PPTX
INSTRUCTION SET
PPT
Computer Architecture and organization ppt.
PPT
10 Instruction Sets Characteristics
PPT
Chapter 1
PPTX
Computer architecture addressing modes and formats
PPT
Addressing
PPTX
Computer Organisation - Addressing Modes
INSTRUCTION SET
Computer Architecture and organization ppt.
10 Instruction Sets Characteristics
Chapter 1
Computer architecture addressing modes and formats
Addressing
Computer Organisation - Addressing Modes

What's hot (20)

PPTX
Addressing modes
PPT
11 instruction sets addressing modes
PPT
Assembly Language Basics
PDF
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
PPTX
Memory Reference Instructions
PPT
Instruction Set Architecture (ISA)
PPT
PPTX
Introduction to Computer Architecture and Organization
PPTX
Lecture 3 instruction set
PPTX
Computer architecture
PPT
Instruction Set Architecture
PPTX
Memory Reference Instructions
PPTX
instruction set Architecture.....(ISA)
PDF
Ec 252 ec-252-l10-instruction sets and addressing modes
PPTX
Addressing modes
PPTX
Lecture 23
PDF
Computer organization basics
PPT
Computer organiztion6
PPTX
Computer architecture instruction formats
PPTX
Memory reference
Addressing modes
11 instruction sets addressing modes
Assembly Language Basics
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Memory Reference Instructions
Instruction Set Architecture (ISA)
Introduction to Computer Architecture and Organization
Lecture 3 instruction set
Computer architecture
Instruction Set Architecture
Memory Reference Instructions
instruction set Architecture.....(ISA)
Ec 252 ec-252-l10-instruction sets and addressing modes
Addressing modes
Lecture 23
Computer organization basics
Computer organiztion6
Computer architecture instruction formats
Memory reference
Ad

Similar to Instruction Set (Part 2) (20)

PPT
11_ Instruction Sets addressing modes -1.ppt
PPT
11 instruction sets addressing modes
PPT
11 instruction sets addressing modes
PPT
ch 3_The CPU_modified.ppt of central processing unit
PPT
11_ Instruction Sets addressing modes .ppt
PPT
11 instruction sets addressing modes
PPTX
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
PPTX
ITEC582-Chapter 13-usefull-Computer.pptx
PPT
11 instruction sets addressing modes
PDF
Ch13- Inst Addressing Modes & Formats.pdf
PPT
Digital principles and computer organisation -Addressing modes.ppt
PPT
Lec3 instructions branch carl hamcher
PPT
(246431835) instruction set principles (2) (1)
PPTX
Module 3.1_Instruction Types and Addressing modes.pptx
PPTX
Unit-1_Processor_Basic Cpu_Organization.pptx
PPT
IS 139 Lecture 6
PPT
COA Chapter 3 final edited*Minimum 40 characters required.ppt
PPTX
instruction sets (1).pptx
PPT
unit-3-L1.ppt
PPT
11 instruction sets addressing modes
11_ Instruction Sets addressing modes -1.ppt
11 instruction sets addressing modes
11 instruction sets addressing modes
ch 3_The CPU_modified.ppt of central processing unit
11_ Instruction Sets addressing modes .ppt
11 instruction sets addressing modes
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
ITEC582-Chapter 13-usefull-Computer.pptx
11 instruction sets addressing modes
Ch13- Inst Addressing Modes & Formats.pdf
Digital principles and computer organisation -Addressing modes.ppt
Lec3 instructions branch carl hamcher
(246431835) instruction set principles (2) (1)
Module 3.1_Instruction Types and Addressing modes.pptx
Unit-1_Processor_Basic Cpu_Organization.pptx
IS 139 Lecture 6
COA Chapter 3 final edited*Minimum 40 characters required.ppt
instruction sets (1).pptx
unit-3-L1.ppt
11 instruction sets addressing modes
Ad

More from Ajeng Savitri (20)

PPTX
Software Testing Documentation
PPTX
Software Productivity Measurement
PPTX
Debugging (Part 2)
PPTX
Debugging
PPTX
Software Testing Strategy (Part 2)
PPTX
Software Testing Strategy
PPTX
Object Oriented Testing
PPTX
Testing Technique (Part 2)
PPTX
Testing Technique
PPTX
Testing Plan
PPTX
Methodology Selection Strategy
PPTX
Software Testing - Software Quality (Part 2)
PPTX
Software Testing - Software Quality
PPTX
Computer Evolution and Performance
PPTX
Software Testing - Introduction
PPTX
Sequence Diagram
PPTX
Activity Diagram
PPTX
Use Case Diagram
PPTX
Requirement Gathering
PPTX
Business Value
Software Testing Documentation
Software Productivity Measurement
Debugging (Part 2)
Debugging
Software Testing Strategy (Part 2)
Software Testing Strategy
Object Oriented Testing
Testing Technique (Part 2)
Testing Technique
Testing Plan
Methodology Selection Strategy
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality
Computer Evolution and Performance
Software Testing - Introduction
Sequence Diagram
Activity Diagram
Use Case Diagram
Requirement Gathering
Business Value

Recently uploaded (20)

PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Essential Infomation Tech presentation.pptx
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
history of c programming in notes for students .pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
System and Network Administration Chapter 2
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Which alternative to Crystal Reports is best for small or large businesses.pdf
How Creative Agencies Leverage Project Management Software.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
2025 Textile ERP Trends: SAP, Odoo & Oracle
Softaken Excel to vCard Converter Software.pdf
Understanding Forklifts - TECH EHS Solution
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
CHAPTER 2 - PM Management and IT Context
Essential Infomation Tech presentation.pptx
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
history of c programming in notes for students .pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
System and Network Administration Chapter 2
Internet Downloader Manager (IDM) Crack 6.42 Build 41

Instruction Set (Part 2)

Editor's Notes