home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / MISC / FNNOT.ASM < prev    next >
Assembly Source File  |  1992-10-18  |  1KB  |  76 lines

  1. ; File......: FNNOT.ASM
  2. ; Author....: Ted Means
  3. ; CIS ID....: 73067,3332
  4. ; Date......: $Date$
  5. ; Revision..: $Revision$
  6. ; Log file..: $Logfile$
  7. ; This is an original work by Ted Means and is placed in the
  8. ; public domain.
  9. ;
  10. ; Modification history:
  11. ; ---------------------
  12. ;
  13. ; $Log$
  14. ;
  15.  
  16. ; $DOC$
  17. ; $FUNCNAME$
  18. ;    FN_NOT()
  19. ; $CATEGORY$
  20. ;    Miscellaneous
  21. ; $ONELINER$
  22. ;    Perform a bitwise NOT on an integer
  23. ; $SYNTAX$
  24. ;
  25. ;    fn_not( <nInt> | <cInt> ) -> nResult
  26. ;
  27. ; $ARGUMENTS$
  28. ;
  29. ;   <nInt> may either be a numeric integer, or a 16-bit character string
  30. ;   that is the binary representation of a numeric integer.
  31. ;
  32. ; $RETURNS$
  33. ;
  34. ;   <nResult>, a numeric
  35. ;
  36. ; $DESCRIPTION$
  37. ;
  38. ;   The value returned is obtained by performing a bitwise NOT with
  39. ;   <nInt> as the operand. If any parameters are invalid, the function
  40. ;   will return zero.
  41. ;
  42. ; $EXAMPLES$
  43. ;
  44. ;   nX := 0
  45. ;   nNum := fn_not( nX )
  46. ;   ? nNum      // -32768
  47. ;
  48. ; $SEEALSO$
  49. ;
  50. ; $INCLUDE$
  51. ;
  52. ; $END$
  53. ;
  54. ;
  55.  
  56.  
  57. IDEAL
  58.  
  59. PUBLIC   FN_NOT
  60.  
  61. EXTRN    __FNCBALL:FAR
  62.  
  63. SEGMENT  _FNNET  WORD      PUBLIC    "CODE"
  64.          ASSUME    CS:_FNNET
  65.  
  66. PROC     FN_NOT       FAR
  67.  
  68.          MOV       AX,56F7h
  69.          MOV       DX,0CBFAh
  70.          JMP       __FNCBALL
  71.  
  72. ENDP     FN_NOT
  73. ENDS     _FNNET
  74. END
  75.