SlideServe
Menu
Préférences
© SlideServe · v2026

ECT 464

morwen avatar
10 diapositives · 321 Views · Jan 30, 2013

ECT 464 . Lecture 11 Math Instructions. Today’s Quote: The doors of opportunity are marked “Push” and “Pull.” The sluggard craves and gets nothing,        but the desires of the diligent are fully satisfied. Proverbs 13:4. Arithmetic Status Bits.

ECT 464 - slide 1
01 / 10ECT 464
1 / 17

Télécharger la présentation

ECT 464
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. ECT 464 Lecture 11 Math Instructions

  2. Today’s Quote: The doors of opportunity are marked “Push” and “Pull.” The sluggard craves and gets nothing,        but the desires of the diligent are fully satisfied. Proverbs 13:4

  3. Arithmetic Status Bits • S:0/0 Carry (C) sets if carry is generated • S:0/1 Overflow (V) set if overflow • S:0/2 Zero (Z) indicates a resulting zero • S:0/3 Sign (S) indicates a resulting negative value • S:5/0 Overflow Trap Bit – Will set major error if not unlatched before END, TND, or REF statement • S:13 Least Significant Word of MUL and DDV instructions. Contains remainder for DIV and DDV instructions and the first four BCD digits for the convert from BCD (FRD) and convert to BCD (TOD) instructions. • S:14 Least Significant Word of MUL and DDV instructions. Contains unrounded quotient for DIV and DDV instructions and the most significant digit for TOD and FRD instructions

  4. Add (ADD) • Adds source A to source B and stores the result in the destination. • Source A can be an address or a constant • Source B can be an address or a constant • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits

  5. Subtract (SUB) • Subtract source B from source A and stores the result in the destination. • Source A can be an address or a constant • Source B can be an address or a constant • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits

  6. Multiply (MUL) • Multiply source A by source B and stores the result in the destination. • Source A can be an address or a constant • Source B can be an address or a constant • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits • The result is also placed in S:14 and S:13 (Math Register)

  7. Divide (DIV) • Divides source A by source B and stores the rounded quotient in the destination. • Source A can be an address or a constant • Source B can be an address or a constant • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits • The unrounded quotient is placed in S:14 and the remainder is placed in S:13 (Math Register)

  8. Double Divide (DDV) • The 32 bit content of the math register is divided by the 16-bit source value and the rounded quotient is placed in the destination. • Source can be an address or a constant • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits • The unrounded quotient is placed in S:14 and the remainder is placed in S:13 (Math Register)

  9. Clear (CLR) • The destination is set to zero. • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits

  10. Square Root (SQR) • The square root of the absolute value of the source is calculated and the rounded result is placed in the destination. • Source must be an address • Destination must be an address • Changes Carry, Overflow, Zero, and Sign bits