home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 15 / MA_Cover_15.iso / source / winquake / lowlevel_protos_stub.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-25  |  3.3 KB  |  168 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. ULONG ReadJoyPort(ULONG arg1)
  16. {
  17.     extern struct Library *LowLevelBase;
  18.     ULONG regs[16];
  19.     regs[0] = (ULONG) arg1;
  20.     __CallLibrary(LowLevelBase,-30,regs);
  21.     return (ULONG) regs[0];
  22. }
  23.  
  24. UBYTE GetLanguageSelection()
  25. {
  26.     extern struct Library *LowLevelBase;
  27.     ULONG regs[16];
  28.     __CallLibrary(LowLevelBase,-36,regs);
  29.     return (UBYTE) regs[0];
  30. }
  31.  
  32. ULONG GetKey()
  33. {
  34.     extern struct Library *LowLevelBase;
  35.     ULONG regs[16];
  36.     __CallLibrary(LowLevelBase,-48,regs);
  37.     return (ULONG) regs[0];
  38. }
  39.  
  40. VOID QueryKeys(void *arg1,ULONG arg2)
  41. {
  42.     extern struct Library *LowLevelBase;
  43.     ULONG regs[16];
  44.     regs[8] = (ULONG) arg1;
  45.     regs[1] = (ULONG) arg2;
  46.     __CallLibrary(LowLevelBase,-54,regs);
  47. }
  48.  
  49. void *AddKBInt(void *arg1,void *arg2)
  50. {
  51.     extern struct Library *LowLevelBase;
  52.     ULONG regs[16];
  53.     regs[8] = (ULONG) arg1;
  54.     regs[9] = (ULONG) arg2;
  55.     __CallLibrary(LowLevelBase,-60,regs);
  56.     return (void *) regs[0];
  57. }
  58.  
  59. VOID RemKBInt(void *arg1)
  60. {
  61.     extern struct Library *LowLevelBase;
  62.     ULONG regs[16];
  63.     regs[9] = (ULONG) arg1;
  64.     __CallLibrary(LowLevelBase,-66,regs);
  65. }
  66.  
  67. ULONG SystemControlA(void *arg1)
  68. {
  69.     extern struct Library *LowLevelBase;
  70.     ULONG regs[16];
  71.     regs[9] = (ULONG) arg1;
  72.     __CallLibrary(LowLevelBase,-72,regs);
  73.     return (ULONG) regs[0];
  74. }
  75.  
  76. ULONG SystemControl(void *arg1)
  77. {
  78.     extern struct Library *LowLevelBase;
  79.     ULONG regs[16];
  80.     regs[9] = (ULONG) &arg1;
  81.     __CallLibrary(LowLevelBase,-72,regs);
  82.     return (ULONG) regs[0];
  83. }
  84.  
  85. void *AddTimerInt(void *arg1,void *arg2)
  86. {
  87.     extern struct Library *LowLevelBase;
  88.     ULONG regs[16];
  89.     regs[8] = (ULONG) arg1;
  90.     regs[9] = (ULONG) arg2;
  91.     __CallLibrary(LowLevelBase,-78,regs);
  92.     return (void *) regs[0];
  93. }
  94.  
  95. VOID RemTimerInt(void *arg1)
  96. {
  97.     extern struct Library *LowLevelBase;
  98.     ULONG regs[16];
  99.     regs[9] = (ULONG) arg1;
  100.     __CallLibrary(LowLevelBase,-84,regs);
  101. }
  102.  
  103. VOID StopTimerInt(void *arg1)
  104. {
  105.     extern struct Library *LowLevelBase;
  106.     ULONG regs[16];
  107.     regs[9] = (ULONG) arg1;
  108.     __CallLibrary(LowLevelBase,-90,regs);
  109. }
  110.  
  111. VOID StartTimerInt(void *arg1,ULONG arg2,LONG arg3)
  112. {
  113.     extern struct Library *LowLevelBase;
  114.     ULONG regs[16];
  115.     regs[9] = (ULONG) arg1;
  116.     regs[0] = (ULONG) arg2;
  117.     regs[1] = (ULONG) arg3;
  118.     __CallLibrary(LowLevelBase,-96,regs);
  119. }
  120.  
  121. ULONG ElapsedTime(void *arg1)
  122. {
  123.     extern struct Library *LowLevelBase;
  124.     ULONG regs[16];
  125.     regs[8] = (ULONG) arg1;
  126.     __CallLibrary(LowLevelBase,-102,regs);
  127.     return (ULONG) regs[0];
  128. }
  129.  
  130. void *AddVBlankInt(void *arg1,void *arg2)
  131. {
  132.     extern struct Library *LowLevelBase;
  133.     ULONG regs[16];
  134.     regs[8] = (ULONG) arg1;
  135.     regs[9] = (ULONG) arg2;
  136.     __CallLibrary(LowLevelBase,-108,regs);
  137.     return (void *) regs[0];
  138. }
  139.  
  140. VOID RemVBlankInt(void *arg1)
  141. {
  142.     extern struct Library *LowLevelBase;
  143.     ULONG regs[16];
  144.     regs[9] = (ULONG) arg1;
  145.     __CallLibrary(LowLevelBase,-114,regs);
  146. }
  147.  
  148. BOOL SetJoyPortAttrsA(ULONG arg1,void *arg2)
  149. {
  150.     extern struct Library *LowLevelBase;
  151.     ULONG regs[16];
  152.     regs[0] = (ULONG) arg1;
  153.     regs[9] = (ULONG) arg2;
  154.     __CallLibrary(LowLevelBase,-132,regs);
  155.     return (BOOL) regs[0];
  156. }
  157.  
  158. BOOL SetJoyPortAttrs(ULONG arg1,void *arg2)
  159. {
  160.     extern struct Library *LowLevelBase;
  161.     ULONG regs[16];
  162.     regs[0] = (ULONG) arg1;
  163.     regs[9] = (ULONG) &arg2;
  164.     __CallLibrary(LowLevelBase,-132,regs);
  165.     return (BOOL) regs[0];
  166. }
  167.  
  168.