Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Data Transfer and Manipulation   By:- Gaurav Pal(8136)
Data Transfer and Manipulation <ul><li>Most computer instructions can be classified into three categories: </li></ul><ul><...
Data Transfer Instruction <ul><li>Data transfer instructions move data from one place in the computer to another without c...
<ul><li>Typical Data Transfer Instruction : </li></ul><ul><li>»  Load : transfer from memory to a processor register, usua...
Data Manipulation Instruction <ul><li>Data Manipulation Instructions perform operations on data and provide the computatio...
Arithmetic Insructions NAME Mnemonic Increment INC Decrement DEC Add ADD Subtract SUB Multiply MUL Divide DIV Add with car...
Logical and bit manipulation Insructions NAME Mnemonic Clear CLR Complement COM AND AND OR OR Exclusive-or XOR Clear carry...
Shift Instructions NAME Mnemonic Logical shift right SHR Logical shift left SHL Arithmetic shift right SHRA Arithmetic shi...
Program control <ul><li>Program control instructions specify conditions for altering the content of the program counter , ...
Status Bit Conditions  <ul><li>It is convinent  to  supplement the ALU circuit in the CPU with a status register where sta...
4-bit status register
Conditional Branch Instructions :
Subroutine Call and Return <ul><li>It is a self-contained sequence of instructions that performs a given computational tas...
<ul><li>A subroutine call is implemented with the following microoperations: </li></ul><ul><li>CALL: </li></ul><ul><li>SP←...
Program Interrupt <ul><li>»  Transfer program control from a currently running program to another service program </li></u...
Types of Interrupts <ul><li>1) External Interrupts </li></ul><ul><li>» come from I/O device, from a timing device, from a ...
Upcoming SlideShare
Loading in …5
×

of

Data transfer and manipulation Slide 1 Data transfer and manipulation Slide 2 Data transfer and manipulation Slide 3 Data transfer and manipulation Slide 4 Data transfer and manipulation Slide 5 Data transfer and manipulation Slide 6 Data transfer and manipulation Slide 7 Data transfer and manipulation Slide 8 Data transfer and manipulation Slide 9 Data transfer and manipulation Slide 10 Data transfer and manipulation Slide 11 Data transfer and manipulation Slide 12 Data transfer and manipulation Slide 13 Data transfer and manipulation Slide 14 Data transfer and manipulation Slide 15 Data transfer and manipulation Slide 16
Upcoming SlideShare
Types of instructions
Next
Download to read offline and view in fullscreen.

31 Likes

Share

Download to read offline

Data transfer and manipulation

Download to read offline

Sanjeev Patel 4x

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Data transfer and manipulation

  1. 1. Data Transfer and Manipulation By:- Gaurav Pal(8136)
  2. 2. Data Transfer and Manipulation <ul><li>Most computer instructions can be classified into three categories: </li></ul><ul><li>Data transfer, </li></ul><ul><li>2) Data manipulation, </li></ul><ul><li>3) Program control instructions </li></ul>
  3. 3. Data Transfer Instruction <ul><li>Data transfer instructions move data from one place in the computer to another without changing the data content </li></ul><ul><li>The most common transfers are between memory and processor registers,between processor registers and input or output,and between the processor registers themselves. </li></ul>
  4. 4. <ul><li>Typical Data Transfer Instruction : </li></ul><ul><li>» Load : transfer from memory to a processor register, usually an AC ( memory read) </li></ul><ul><li>» Store : transfer from a processor register into memory ( memory write) </li></ul><ul><li>» Move : transfer from one register to another register </li></ul><ul><li>» Exchange : swap information between two registers or a register and a memory word </li></ul><ul><li>» Input/Output : transfer data among processor registers and input/output device </li></ul><ul><li>» Push/Pop : transfer data between processor registers and a memory stack </li></ul>NAME Mnemonic Load LD Store ST Move MOV Exchange XCH Input IN Output OUT Push PUSH pop POP
  5. 5. Data Manipulation Instruction <ul><li>Data Manipulation Instructions perform operations on data and provide the computational capabilities for the computer. </li></ul><ul><li>It is divided into three basic types: </li></ul><ul><ul><li>Arithmetic, </li></ul></ul><ul><li>2) Logical and bit manipulation, </li></ul><ul><li>3) Shift Instruction </li></ul>
  6. 6. Arithmetic Insructions NAME Mnemonic Increment INC Decrement DEC Add ADD Subtract SUB Multiply MUL Divide DIV Add with carry ADDC Subtract with borrow SUBB Negate (2’s complement) NEG
  7. 7. Logical and bit manipulation Insructions NAME Mnemonic Clear CLR Complement COM AND AND OR OR Exclusive-or XOR Clear carry CLRC Set carry SETC complement carry COMC Enable interrupt EI Disable interrupt DI
  8. 8. Shift Instructions NAME Mnemonic Logical shift right SHR Logical shift left SHL Arithmetic shift right SHRA Arithmetic shift left SHLA Rotate right ROR Rotate left ROL Rotate right through carry RORC Rotate left through carry ROLC
  9. 9. Program control <ul><li>Program control instructions specify conditions for altering the content of the program counter , while data transfer and manipulation instructions specify condtions for data-processing operations. </li></ul>NAME Mnemonic Branch BR Jump JMP Skip SKP Call CALL Return RET Compare(by subtraction) CMP Test(by ANDing) TST
  10. 10. Status Bit Conditions <ul><li>It is convinent to supplement the ALU circuit in the CPU with a status register where status bit condition can be stored for further analysis. </li></ul><ul><li>Status bits are also called condition code bit or flag bit. </li></ul><ul><li>The four status bits are symbolized by C,S,Z and V. </li></ul><ul><li>The bits are set or cleared as a result of an operation performed in the ALU </li></ul>
  11. 11. 4-bit status register
  12. 12. Conditional Branch Instructions :
  13. 13. Subroutine Call and Return <ul><li>It is a self-contained sequence of instructions that performs a given computational task. </li></ul><ul><li>During the execution of a program,a subroutine may call when it is called, a branch is executed to the beginning of the subroutine to start executing its set of instructions. After the subroutine has been executed,a branch is made back to the main program. </li></ul>
  14. 14. <ul><li>A subroutine call is implemented with the following microoperations: </li></ul><ul><li>CALL: </li></ul><ul><li>SP← SP-1 : Decrement stack point </li></ul><ul><li>M[SP] ←PC : Push content of PC onto the stack </li></ul><ul><li>PC← Effective Address : Transfer control to the subroutine </li></ul><ul><li>RETURN: </li></ul><ul><li>PC ← M[SP] : Pop stack and transfer to PC </li></ul><ul><li>SP ← SP+1 : Increment stack pointer </li></ul>
  15. 15. Program Interrupt <ul><li>» Transfer program control from a currently running program to another service program </li></ul><ul><li>as a result of an external or internal generated request </li></ul><ul><li>» Control returns to the original program after the service program is executed </li></ul>
  16. 16. Types of Interrupts <ul><li>1) External Interrupts </li></ul><ul><li>» come from I/O device, from a timing device, from a circuit </li></ul><ul><li>monitoring the power supply, or from any other external source </li></ul><ul><li>2) Internal Interrupts or TRAP </li></ul><ul><li>» caused by register overflow, attempt to divide by zero, </li></ul><ul><li>an invalid operation code, stack overflow, and protection violation </li></ul><ul><li>3) Software Interrupts </li></ul><ul><li>» initiated by executing an instruction ( INT or RST) </li></ul><ul><li>» used by the programmer to initiate an interrupt procedure at any desired point in the program </li></ul>
  • KathirvelD4

    May. 6, 2021
  • TSPPooja

    Mar. 22, 2021
  • voggunavya1708

    Feb. 25, 2021
  • Sarayubhasuru

    Dec. 17, 2020
  • Sarayubhasuru

    Dec. 17, 2020
  • RajeshJade

    Dec. 1, 2020
  • csitsacwc

    Nov. 18, 2020
  • OVUsharani

    Nov. 17, 2020
  • MonikaMamgain1

    Apr. 29, 2020
  • ShanmugaSubramanianS

    Mar. 26, 2020
  • MashalIshaq

    Nov. 28, 2019
  • Jann18210905

    Oct. 24, 2019
  • FelixKipchirchir

    Mar. 7, 2019
  • lavanyajess

    Feb. 14, 2019
  • RoshniJawaharlal

    Feb. 7, 2019
  • soniyaruhil1

    May. 22, 2018
  • RaviTeja1144

    Apr. 30, 2018
  • DivyasriPadala

    Apr. 18, 2018
  • AnishaDahal1

    Mar. 11, 2018
  • AmitPanday5

    Dec. 12, 2017

Sanjeev Patel 4x

Views

Total views

33,649

On Slideshare

0

From embeds

0

Number of embeds

9

Actions

Downloads

994

Shares

0

Comments

0

Likes

31

×