1 / 33

Instruction type

Instruction type. Topic of lecture:- Data-Transfer Instructions Arithmetic Instructions Logic Instructions Shift Instructions Rotate Instructions. Data-Transfer Instructions.

dorcas
Download Presentation

Instruction type

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Instruction type Topic of lecture:- Data-Transfer Instructions Arithmetic Instructions Logic Instructions Shift Instructions Rotate Instructions

  2. Data-Transfer Instructions • The data-transfer functions provide the ability to move data either between its internal registers or between an internal register and a storage location in memory. • The data-transfer functions include -MOV (Move byte or word) -XCHG (Exchange byte or word) -XLAT (Translate byte) -LEA (Load effective address) -LDS (Load data segment) -LES (Load extra segment)

  3. The MOVE Instruction (MOV) instruction is used to transfer a byte or a word of data from a source operand to a destination operand.

  4. The MOVE Instruction Note that the MOV instruction cannot transfer data directly between external memory.

  5. Data-Transfer Instructions • The XCHG Instruction The exchange (XCHG) instruction can be used to swap data between two general-purpose registers or between a general- purpose register and a storage location in memory.

  6. Arithmetic Instructions The arithmetic instructions include • Addition • Subtraction • Multiplication • Division Data formats • Unsigned binary bytes. • Signed binary bytes. • Unsigned binary words. • Signed binary words. • Unpacked decimal bytes. • Packed decimal bytes. • ASCII numbers.

  7. Addition Instructions: ADD, ADC, INC, Allowed operands for ADD and ADC instructions

  8. Arithmetic Instructions

  9. Subtraction Instructions: SUB, SBB, DEC

  10. Multiplication Instructions :MUL, DIV, IMUL, IDIV

  11. Logic Instructions The logic instructions include • AND • OR • XOR (Exclusive-OR) • NOT

  12. Shift Instructions

  13. Shift Instructions

  14. Shift Instructions

  15. Rotate Instructions

  16. Rotate Instructions

More Related