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

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