home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / ASM / ALIB30B / SOUND1.ASM < prev    next >
Assembly Source File  |  1994-11-15  |  982b  |  45 lines

  1.     page    66,132
  2. ;******************************** SOUND1.ASM *********************************
  3.  
  4. LIBSEG           segment byte public "LIB"
  5.         assume cs:LIBSEG , ds:nothing
  6.  
  7. ;----------------------------------------------------------------------------
  8. .xlist
  9.     include  mac.inc
  10.     include  common.inc
  11. .list
  12.  
  13.     public    sound_flag
  14. sound_flag    db    1    ;0=sound off  1=sound on
  15.  
  16. comment 
  17. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(  SOUND  )
  18. SOUND_ON - Enable sounds from BEEP and ONE_BEEP
  19. ;
  20. ; inputs: none
  21. ; output: none
  22. ;* * * * * * * * * * * * * *
  23. 
  24.     public    sound_on
  25. sound_on    proc    far
  26.     mov    cs:sound_flag,1
  27.     retf
  28. sound_on    endp
  29. comment 
  30. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(  SOUND  )
  31. SOUND_OFF - Disable sounds from BEEP and ONE_BEEP
  32. ;
  33. ; inputs: none
  34. ; output: none
  35. ;* * * * * * * * * * * * * *
  36. 
  37.     public    sound_off
  38. sound_off    proc    far
  39.     mov    cs:sound_flag,0
  40.     retf
  41. sound_off    endp
  42.  
  43. LIBSEG    ENDS
  44.     end
  45.