home *** CD-ROM | disk | FTP | other *** search
/ CD-X 1 / cdx_01.iso / demodisc / tyrant / docs / 386code / d_append.386 < prev    next >
Encoding:
Text File  |  1994-01-20  |  2.0 KB  |  64 lines

  1. Appendix D  Condition Codes
  2.  
  3. ───────────────────────────────────────────────────────────────────────────
  4.  
  5. ───────────────────────────────────────────────────────────────────────────
  6. Note:
  7.   The terms "above" and "below" refer to the relation between two
  8.   unsigned values (neither SF nor OF is tested). The terms "greater" and
  9.   "less" refer to the relation between two signed values (SF and OF are
  10.   tested).
  11. ───────────────────────────────────────────────────────────────────────────
  12.  
  13. Definition of Conditions
  14.  
  15. (For conditional instructions Jcond, and SETcond)
  16.  
  17.  
  18.                                        Instruction  Condition
  19. Mnemonic  Meaning                      Subcode      Tested
  20.  
  21. O         Overflow                     0000         OF = 1
  22.  
  23. NO        No overflow                  0001         OF = 0
  24.  
  25. B         Below
  26. NAE       Neither above nor equal      0010         CF = 1
  27.  
  28. NB        Not below
  29. AE       Above or equal                0011         CF = 0
  30.  
  31. E         Equal
  32. Z         Zero                         0100         ZF = 1
  33.  
  34. NE        Not equal
  35. NZ        Not zero                     0101         ZF = 0
  36.  
  37. BE        Below or equal
  38. NA        Not above                    0110         (CF or ZF) = 1
  39.  
  40. NBE       Neither below nor equal
  41. NA        Above                        0111         (CF or ZF) = 0
  42.  
  43. S         Sign                         1000         SF = 1
  44.  
  45. NS        No sign                      1001         SF = 0
  46.  
  47. P         Parity
  48. PE        Parity even                  1010         PF = 1
  49.  
  50. NP        No parity
  51. PO        Parity odd                   1011         PF = 0
  52.  
  53. L         Less
  54. NGE       Neither greater nor equal    1100         (SF xor OF) = 1
  55.  
  56. NL        Not less
  57. GE        Greater or equal             1101         (SF xor OF) = 0
  58.  
  59. LE        Less or equal
  60. NG        Not greater                  1110         ((SF xor OF) or ZF) = 1
  61.  
  62. NLE       Neither less nor equal
  63. G         Greater                      1111         ((SF xor OF) or ZF) = 0
  64.