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

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