CH12 COA10e
CH12 COA10e
William Stallings
Computer Organization
and Architecture
10th Edition
© 2016 Pearson Education, Inc., Hoboken,
NJ. All rights reserved.
+ Chapter 12
Instruction Sets:
Characteristics and Functions
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
Machine Instruction
Characteristics
■ Examples include:
■ ADD Add
■ SUB Subtract
■ MUL Multiply
■ DIV Divide
■ LOAD Load data from memory
■ STOR Store data to memory
Data
Data storage
processing
Data
Control
movement
•Test instructions are used to test the value of •I/O instructions are needed to
a data word or the status of a computation transfer programs and data into
•Branch instructions are used to branch to a memory and the results of
different set of instructions depending on the computations back out to the
decision made user
s se s
A ddre
Num
bers
Chara
cters
a l D a t a
L og ic
■ Packed decimal
■ Each decimal digit is represented by a 4-bit code with two digits
stored per byte
■ To form numbers 4-bit codes are strung together, usually in multiples
of 8 bits
x86
Data Types
■ Data types:
■ Packed byte and packed byte integer
■ Packed word and packed word integer
■ Packed doubleword and packed doubleword integer
■ Packed quadword and packed quadword integer
■ Packed single-precision floating-point and packed double-precision
floating-point
Alignment checking
All three data types can also •When the appropriate control bit is
be used for twos set, a data abort signal indicates an
complement signed integers alignment fault for attempting
unaligned access
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved. (Table can be found on page 428 in textbook.)
+ ■ Most machines provide the basic arithmetic
operations of add, subtract, multiply, and divide
An example of a
more complex
editing instruction
is the EAS/390
An example is Translate (TR)
converting instruction
from decimal
to binary
Instructions that can be executed only while the processor is in a certain privileged
state or is executing a program in a special privileged area of memory
Typically these instructions are reserved for the use of the operating system
■ The intent was to provide tools for the compiler writer to produce
optimized machine language translation of high-level language
programs
MMX
Instruction Set
Parallel addition
Multiply Extend
and subtraction
instructions instructions
instructions
Status register
access instructions
ARM
Conditions
for
Conditional
Instruction
Execution