home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_03 / C_JS_108.ZIP / DOCS / JAGOS.TXT < prev    next >
Text File  |  1996-02-19  |  3KB  |  102 lines

  1. ---------------------------------------------------------------------
  2. - Callable functions in the Jaguar Operating System (JagOS)         -
  3. - ╜ Roine Stenberg '95                                              -
  4. - Last update 960211 for V. 1.08                                    -
  5. ---------------------------------------------------------------------
  6.  
  7. All .W and .L are sent with the most significant byte FIRST.
  8. If the return is an ascii string, it is sent from left to right.
  9.  
  10. Any Return values are processed by Jaguar Server, not by the user
  11. program.
  12.  
  13. ---------------------------------------------------------------------
  14. 2. Recive data from computer.
  15.  
  16. Ver:    1.00
  17. Send:
  18.     .W    $0002        * Function number
  19.     .L    $5000        * Destination adress in Jaguar
  20.     .L    $1000        * Lenght in bytes
  21.     .B    datastream    * Datadump
  22.     
  23. Return:
  24.         NONE
  25. ---------------------------------------------------------------------
  26. 3. Recive data from computer AND run program.
  27.  
  28. Ver:    1.01
  29. Send:
  30.     .W    $0003        * Function number
  31.     .L    $5000        * Destination adress in Jaguar
  32.     .L    $1000        * Lenght in bytes
  33.     .L    $5000        * Start adress in Jaguar
  34.     .B    datastream    * Datadump
  35.     
  36. Return:
  37.         NONE
  38.  
  39. NOTE: If 'JAGL' is specified instead of 'JAGR', then the function
  40. number is LONG instead of Word.
  41. ---------------------------------------------------------------------
  42. 5. Reset Jaguar.
  43.  
  44. Ver:    1.00
  45. Send:
  46.     .W    $0005        * Function number
  47.  
  48. Return:
  49.         NONE
  50. ---------------------------------------------------------------------
  51. 7. Run program.
  52.  
  53. Ver:    1.00
  54. Send:
  55.     .W    $0007        * Function number
  56.     .L    $5000        * Start adress.
  57.     
  58. Return:
  59.         NONE
  60. ---------------------------------------------------------------------
  61. 9. Clear Jaguar memory.
  62.                 
  63. Ver:    1.04
  64. Send:
  65.     .W    $0009        * Function number
  66.     .L    $5000        * Start adress to Clear.
  67.                 * $0 = Clear ALL memory from $4000 - $1FFFFF 
  68.     .L    $6000        * End adress to Clear.
  69.  
  70. Return:
  71.     .W    Ascii 'CO'    * Memory cleared.
  72. ---------------------------------------------------------------------
  73. 10. Tell computer to POLL for commands when .JAG program is uploaded.
  74.  
  75. Ver:    1.08
  76. Send:
  77.     .W    $000A        * Function number
  78.  
  79. Return:
  80.         NONE
  81. ---------------------------------------------------------------------
  82. 12. Load and run users computer prg when *.JAG program is uploaded.
  83.                 
  84. Ver:    1.08
  85. Send:
  86.     .W    $000C        * Function number.
  87.     .B    "USER.PRG",0    * Program to load and run and ,0 to mark end.
  88.         EVEN        * Make sure next dc.w is _not_ odd.
  89. Return:
  90.         NONE
  91.  
  92. ---------------------------------------------------------------------
  93. 65535. STOP function.
  94.                 
  95. Ver:    1.04
  96. Send:
  97.     .W    $FFFF        * Function number to stop further functions.
  98.  
  99. Return:
  100.         NONE
  101. ---------------------------------------------------------------------
  102.