home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / quake_src / lowlevel_protos_stub.c < prev    next >
C/C++ Source or Header  |  2000-06-17  |  4KB  |  169 lines

  1. // Stub functions for protofile "lowlevel_protos.h"
  2. // Generated by genPPCStub 1.1 for StormC
  3. // © 1996/97 HAAGE & PARTNER GmbH
  4.  
  5. // DO NOT EDIT
  6.  
  7. #ifndef PPC
  8. #define PPC
  9. #endif // PPC
  10.  
  11. #include <libraries/powerpc.h>
  12.  
  13. #include <ppcamiga.h>
  14.  
  15. #pragma -
  16. ULONG ReadJoyPort(ULONG arg1)
  17. {
  18.         extern struct Library *LowLevelBase;
  19.         ULONG regs[16];
  20.         regs[0] = (ULONG) arg1;
  21.         __CallLibrary(LowLevelBase,-30,regs);
  22.         return (ULONG) regs[0];
  23. }
  24.  
  25. UBYTE GetLanguageSelection()
  26. {
  27.         extern struct Library *LowLevelBase;
  28.         ULONG regs[16];
  29.         __CallLibrary(LowLevelBase,-36,regs);
  30.         return (UBYTE) regs[0];
  31. }
  32.  
  33. ULONG GetKey()
  34. {
  35.         extern struct Library *LowLevelBase;
  36.         ULONG regs[16];
  37.         __CallLibrary(LowLevelBase,-48,regs);
  38.         return (ULONG) regs[0];
  39. }
  40.  
  41. VOID QueryKeys(void *arg1,ULONG arg2)
  42. {
  43.         extern struct Library *LowLevelBase;
  44.         ULONG regs[16];
  45.         regs[8] = (ULONG) arg1;
  46.         regs[1] = (ULONG) arg2;
  47.         __CallLibrary(LowLevelBase,-54,regs);
  48. }
  49.  
  50. void *AddKBInt(void *arg1,void *arg2)
  51. {
  52.         extern struct Library *LowLevelBase;
  53.         ULONG regs[16];
  54.         regs[8] = (ULONG) arg1;
  55.         regs[9] = (ULONG) arg2;
  56.         __CallLibrary(LowLevelBase,-60,regs);
  57.         return (void *) regs[0];
  58. }
  59.  
  60. VOID RemKBInt(void *arg1)
  61. {
  62.         extern struct Library *LowLevelBase;
  63.         ULONG regs[16];
  64.         regs[9] = (ULONG) arg1;
  65.         __CallLibrary(LowLevelBase,-66,regs);
  66. }
  67.  
  68. ULONG SystemControlA(void *arg1)
  69. {
  70.         extern struct Library *LowLevelBase;
  71.         ULONG regs[16];
  72.         regs[9] = (ULONG) arg1;
  73.         __CallLibrary(LowLevelBase,-72,regs);
  74.         return (ULONG) regs[0];
  75. }
  76.  
  77. ULONG SystemControl(void *arg1)
  78. {
  79.         extern struct Library *LowLevelBase;
  80.         ULONG regs[16];
  81.         regs[9] = (ULONG) &arg1;
  82.         __CallLibrary(LowLevelBase,-72,regs);
  83.         return (ULONG) regs[0];
  84. }
  85.  
  86. void *AddTimerInt(void *arg1,void *arg2)
  87. {
  88.         extern struct Library *LowLevelBase;
  89.         ULONG regs[16];
  90.         regs[8] = (ULONG) arg1;
  91.         regs[9] = (ULONG) arg2;
  92.         __CallLibrary(LowLevelBase,-78,regs);
  93.         return (void *) regs[0];
  94. }
  95.  
  96. VOID RemTimerInt(void *arg1)
  97. {
  98.         extern struct Library *LowLevelBase;
  99.         ULONG regs[16];
  100.         regs[9] = (ULONG) arg1;
  101.         __CallLibrary(LowLevelBase,-84,regs);
  102. }
  103.  
  104. VOID StopTimerInt(void *arg1)
  105. {
  106.         extern struct Library *LowLevelBase;
  107.         ULONG regs[16];
  108.         regs[9] = (ULONG) arg1;
  109.         __CallLibrary(LowLevelBase,-90,regs);
  110. }
  111.  
  112. VOID StartTimerInt(void *arg1,ULONG arg2,LONG arg3)
  113. {
  114.         extern struct Library *LowLevelBase;
  115.         ULONG regs[16];
  116.         regs[9] = (ULONG) arg1;
  117.         regs[0] = (ULONG) arg2;
  118.         regs[1] = (ULONG) arg3;
  119.         __CallLibrary(LowLevelBase,-96,regs);
  120. }
  121.  
  122. ULONG ElapsedTime(void *arg1)
  123. {
  124.         extern struct Library *LowLevelBase;
  125.         ULONG regs[16];
  126.         regs[8] = (ULONG) arg1;
  127.         __CallLibrary(LowLevelBase,-102,regs);
  128.         return (ULONG) regs[0];
  129. }
  130.  
  131. void *AddVBlankInt(void *arg1,void *arg2)
  132. {
  133.         extern struct Library *LowLevelBase;
  134.         ULONG regs[16];
  135.         regs[8] = (ULONG) arg1;
  136.         regs[9] = (ULONG) arg2;
  137.         __CallLibrary(LowLevelBase,-108,regs);
  138.         return (void *) regs[0];
  139. }
  140.  
  141. VOID RemVBlankInt(void *arg1)
  142. {
  143.         extern struct Library *LowLevelBase;
  144.         ULONG regs[16];
  145.         regs[9] = (ULONG) arg1;
  146.         __CallLibrary(LowLevelBase,-114,regs);
  147. }
  148.  
  149. WORD SetJoyPortAttrsA(ULONG arg1,void *arg2)
  150. {
  151.         extern struct Library *LowLevelBase;
  152.         ULONG regs[16];
  153.         regs[0] = (ULONG) arg1;
  154.         regs[9] = (ULONG) arg2;
  155.         __CallLibrary(LowLevelBase,-132,regs);
  156.         return (WORD) regs[0];
  157. }
  158.  
  159. WORD SetJoyPortAttrs(ULONG arg1,void *arg2)
  160. {
  161.         extern struct Library *LowLevelBase;
  162.         ULONG regs[16];
  163.         regs[0] = (ULONG) arg1;
  164.         regs[9] = (ULONG) &arg2;
  165.         __CallLibrary(LowLevelBase,-132,regs);
  166.         return (WORD) regs[0];
  167. }
  168. #pragma +
  169.