���令

���令 - Symbol MOVx,y ADDx,y SUBx,y...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Symbol Description MOV x,y assign y  � �   x ADD x,y   x, y � � � � � � � � ı  x SUB x,y   x, y � � � � � � � � ı  x CMP x,y �  x, y ¨ æ • “ * �  SUB  \*• “ * � � ‚ v ¶ “ *  flags  DEC x   � �  1 INC x   x  � �  1 NEG x   � �  2's complement LEA x,y   y ¨ æ•  x JMP x ı• “ * � � — ™ MF   x( destination label )  � � JCXZ x   CX  ��   0¨ æ •   x( destination label )  � � LOOP x   CX  ( �� CX)   for loop� � � � � � � � CX ��� � � � � �   1 �  CX  ��   0 �� �  x( destination label )  � � x EQU y ¨ æ•“* �   x � � ���� � �   y � � LF EQU 0Dh¨ æ •  LF  � �   0Dh XCHG  x,y �   x    y  � �  
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Signed Jumps Symbol Description Condition for Jump JG / JNLE jump if greater than, jump if not less than or equal to ZF = 0 and SF = OF JGE / JNL jump if greater than or equal to, jump if not less than or equal to SF = OF JL / JNGE jump if less than, jump if not greater than or equal SF <> OF JLE / JNG jump if less than or equal, jump if not greater than ZF = 1 or SF <> OF   Unsigned Signed Jumps Symbol Description Condition for Jump JA /  JNBE jump if above, jump if not below or equal ZF = 0 and CF = 0 JAE /  JNB jump if above or equal, jump if not below CF = 0 JB /  JNAE jump if below, jump if not above or equal CF = 1 JBE /  JNA jump if equal, jump if not above CF = 1 or ZF = 1   Single-Flag Jumps Symbol Description Condition for Jump JE / JZ jump if equal, jump if equal to zero ZF = 1 JNE / JNZ jump if not equal, jump if not zero ZF = 0 JC jump if carry CF = 1 JNC jump if no carry CF = 0 JO jump if overflow OF = 1 JNO jump if no overflow OF = 0 JS jump if sign negative SF = 1 JNS jump if nonnegative sign SF = 0 JP / JPE jump if parity even PF = 1 JNP / JPO jump if parity odd PF = 0 � �   Logic, Shift, and Rotate Instructions Symbol Description
Image of page 2
NOT x     1's complement … •  0  � �   1 � �   0 AND x,y     y    AND ���� � � H 1   x OR x,y     y    OR ��� � H 1   x XOR x,y     y    OR ��� � H 1   x SHL x,y   x  �   shift y bits x P 1 • “ * � � — ™ M F � � �  CF�� � � � � � � H   0 SAL x,y ��   SHL  �� � � � � � � M F � �  � � � �  � � � � @ M x * 2 y S SHR x,y S x S shift y bitsS x = E � � � CF 0S SAR x,y S SHR S x = E � � � CF= E msb S bit S P O + � g x / 2 y S ROL x,y S x S shift y bitsS x = E � � CF x S lsbS ROR x,y S x S
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern