data transfer and manipulation

10
Data Transfer and Manipulation

Upload: shubham97

Post on 12-Mar-2015

972 views

Category:

Documents


7 download

DESCRIPTION

Computer Architecture Design

TRANSCRIPT

Page 1: Data Transfer and Manipulation

Data Transfer and Manipulation

Page 2: Data Transfer and Manipulation

Data Transfer and Manipulation

� Computers provide an extensive set of instruction to give the user flexibility to carry out various computational tasks

� The instruction set of different computers differ from each other mostly in the way the operands are determined from address and mode fields.

� The actual operations available in the instruction from one computer to another

Page 3: Data Transfer and Manipulation

Data Transfer and Manipulation

� Most computer instruction can be classified into three categories:

1. Data transfer instruction

2. Data manipulation

3. Program control instructions

Page 4: Data Transfer and Manipulation

Data Transfer and Manipulation

� Data transfer instruction cause of data from one location to another without changing the binary information content.

� Data manipulation instructions are those that perform arithmetic, logic ,shift operation

� Program control instructions provide decision making capabilities and change the path taken by the program when executed in the computer.

Page 5: Data Transfer and Manipulation

Data Transfer and Manipulation

� Data Transfer Instruction

POPPop

PUSHPush

OUTOutput

INInput

XCHExchange

MOVMove

STStore

LDLoad

MnemonicName

Page 6: Data Transfer and Manipulation

Data Manipulation Instructions

� Operation on data and provide the computational capabilities for computer

� Basically data manipulation instructions in a typical computer usually divided into three basic types:

1. Arithmetic Instructions

2. Logical and bit manipulation instructions

3. Shift instructions

Page 7: Data Transfer and Manipulation

Data Manipulation InstructionsArithmetic Instruction

NEGNegate(2’s complement)

SUBBSubtract with borrow

ADDCAdd with carry

DIVDivide

MULMultiply

SUBSubtract

ADDAdd

DECDecrement

INCIncrement

MnemonicName

Page 8: Data Transfer and Manipulation

Data Manipulation Instructions

Logical and Bit Manipulation Instructions

DIDisable Interrupt

EIEnable Interrupt

COMCComplementary Carry

SETCSet Carry

CLRCClear Carry

XORExclusive OR

OROR

ANDAND

COMComplement

CLRClear

MnemonicName

Page 9: Data Transfer and Manipulation

Data Manipulation Instructions

Shift Instructions

ROL CRotate left through Carry

ROR CRotate right through Carry

ROLRotate Left

RORRotate right

SHL AArithmetic shift left

SHR AArithmetic shift right

SHLLogical Shift left

SHRLogical Shift right

MnemonicName

Page 10: Data Transfer and Manipulation

Data Manipulation Instructions

Program Control Instructions

TSTTest (by ANDing)

CMPCompare (by subtraction)

RETReturn

CALLCALL

SKPSkip

JMPJump

BRBranch

MnemonicName