180 likes | 295 Views
Pertemuan 15 Instruction Set. Matakuliah : H0344/Organisasi dan Arsitektur Komputer Tahun : 2005 Versi : 1/1. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menghubungkan instructions set untuk merealisasikan suatu proses sederhana. Outline Materi.
E N D
Pertemuan 15Instruction Set Matakuliah : H0344/Organisasi dan Arsitektur Komputer Tahun : 2005 Versi : 1/1
Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • Menghubungkan instructions set untuk merealisasikan suatu proses sederhana
Outline Materi • Machine Instruction Characteristics • Types of Operands • Types of Operation • Assembly Language • Addressing • Instruction Formats
Machine instruction characteristics Instruction Cycle State Diagram
Machine instruction characteristics Elements of a machine instruction • Operation code • Source operand reference • Result operand reference • Next instruction reference Source and result operands can be in one of three areas: • Main or virtual memory • CPU register • I/O device
Machine instruction characteristics Instruction representation • mnemonics A simple instruction format
Machine instruction characteristics Instruction types The operation X = X + Y X = 513 Y = 514 could be accomplished with three instructions: • Load a register with the contents of memory location 513. • Add the contents of memory location 514 to the register. • Store the content of the register in memory location 513.
Machine instruction characteristics Instruction types We can categorize instruction types as follows: • Data processing • Data storage • Data movement • Control
Machine instruction characteristics Number of address One of the traditional ways of describing processor architecture is in term of the number of address contained in each instruction.
Machine instruction characteristics Instruction set design The most important of these fundamental design issues include the following: • Operation repertoire • Data types • Instruction format • Register • Addressing
Types of operands The most important general categories of data are: • Address • Numbers • Characters • Logical data
Types of operations A useful and typical categories of operations is the following: • Data transfer • Arithmetic • Logical • Conversion • I/O • System control • Transfer of control
Types of operations Transfer of control Branch instructions
Types of operations Transfer of control Skip instruction
Types of operations Transfer of control Procedure call instruction
Types of operations Transfer of control Stock Frame Growth Using Sample Procedures P and Q
Assembly language Problem: N = I + J + K The program consists of four instructions: • Load the contents of location 201 (I) into the Ac. • Add the contents of location 202 (J) into the Ac. • Add the contents of location 203 (K) into the Ac. • Store the contents of the Ac into location 204 (N).
Assembly language Computation of the Formula N = I + J + K