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

  1. ; File......: FNXOR.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_XOR()
  19. ; $CATEGORY$
  20. ;    Miscellaneous
  21. ; $ONELINER$
  22. ;    Perform a bitwise exclusive OR
  23. ; $SYNTAX$
  24. ;    
  25. ;    fn_xor( <nInt1> | <cInt1>, <nInt2> ) -> nResult
  26. ;
  27. ; $ARGUMENTS$
  28. ;
  29. ;    <nInt1> may either be a numeric integer, or a 16-bit character
  30. ;    string that is the binary representation of a numeric integer.
  31. ;
  32. ;    <nInt2> must be a numeric integer.
  33. ;
  34. ; $RETURNS$
  35. ;
  36. ;    <nResult>, a numeric
  37. ;
  38. ; $DESCRIPTION$
  39. ;
  40. ;     The value returned is obtained by performing a bitwise XOR
  41. ;     with <nInt1> and <nInt2> as operands. If any parameters are
  42. ;     invalid, the function will return zero.
  43. ;
  44. ; $EXAMPLES$
  45. ;
  46. ;      ? fn_xor( 11, 12 )       // 7
  47. ;
  48. ; $SEEALSO$
  49. ;
  50. ; $INCLUDE$
  51. ;
  52. ; $END$
  53. ;
  54. ;
  55.  
  56.  
  57. IDEAL
  58.  
  59. PUBLIC   FN_XOR
  60.  
  61. EXTRN    __FNCBALL:FAR
  62.  
  63. SEGMENT  _FNNET  WORD      PUBLIC    "CODE"
  64.          ASSUME    CS:_FNNET
  65.  
  66. PROC     FN_XOR       FAR
  67.  
  68.          MOV       AX,4631h
  69.          MOV       DX,0CBFAh
  70.          JMP       __FNCBALL
  71.  
  72. ENDP     FN_XOR
  73. ENDS     _FNNET
  74. END
  75.  
  76.