CH12-WS - 10thed
CH12-WS - 10thed
William Stallings
Computer Organization
and Architecture
10th Edition
Data
Control movemen
t
• Test instructions are used to test the • I/O instructions are
value of a data word or the status of needed to transfer
a computation programs and data into
• Branch instructions are used to memory and the results
branch to a different set of of computations back out
instructions depending on the to the user
decision made
sse s
d re
Ad Num
bers
Char
acte
rs i c al
Log
Data
Packed decimal
Each decimal digit is represented by a 4-bit code with two
digits stored per byte
Must specify:
• Location of the
source and
destination
Most operands
fundamental • The length of
type of data to be
transferred must
machine be indicated
instruction • The mode of
addressing for
each operand
must be
specified
Developed based on 2016 Pearson Education, Inc., Hoboken, NJ (Table can be found on page 428 in textbook.)
+ Most machines provide the basic arithmetic
operations of add, subtract, multiply, and
divide
These are provided for signed integer (fixed-
point) numbers
Often they are also provided for floating-
point and packed decimal numbers
Other possible operations include a variety
of single-operand instructions:
Arithmetic
Absolute
Take the absolute value of the operand
Negate
Negate the operand
Increment
Add 1 to the operand
Decrement
Subtract 1 from the operand
Developed based on 2016 Pearson Education, Inc., Hoboken, NJ
Table 12.6
Basic Logical Operations
An example of
a more
complex
editing
An example instruction is
is the EAS/390
converting Translate (TR)
from instruction
decimal to
binary
Example:
Because the skip 301
instruction does not Example is the .
require a destination increment-and-skip-if- .
address field it is free to zero (ISZ) instruction 309 ISZ R1
do other things 310 BR 301
311