home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6571.LZX / examples / reslib / mylib.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-24  |  469 b   |  26 lines

  1. #include <proto/dos.h>
  2. #include <stdio.h>
  3.  
  4. int b = 0;
  5.  
  6. __asm __saveds LIBtest1(void)
  7. {
  8.    printf("test1 called!\n");
  9.  
  10.    Delay(50);  // Delay for a little while to give the profiler
  11.                // something to measure.
  12.  
  13.    printf("test1 exiting!\n");
  14.  
  15.    return(b);
  16. }
  17.  
  18. __asm __saveds LIBtest2(register __d1 int a)
  19. {
  20.    printf("test2 called, parameter %d!\n", a);
  21.    Delay(25);  // Delay half as long as test1
  22.    b = a;
  23.    printf("test2 exiting!\n");
  24.    return(b);
  25. }
  26.