home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128CPM / SGTOOL16.ARC / LIBC128.ARC / SIDCLR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-27  |  321 b   |  23 lines

  1. /*
  2. SG C Tools 1.6
  3.  
  4. (C) 1993 Steve Goldsmith
  5. All Rights Reserved
  6.  
  7. Compiled with HI-TECH C 3.09 (CP/M-80).
  8. */
  9.  
  10. #include <sys.h>
  11. #include <hitech.h>
  12. #include <sid.h>
  13.  
  14. /* clear all sid registers */
  15.  
  16. void clearsid(void)
  17. {
  18.   register ushort I;
  19.  
  20.   for(I = sidVoice1; I <= sidEnvGen3; I++)
  21.     outp(I,0);
  22. }
  23.