home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_03 / C_JS_108.ZIP / DOCS / TOS.TXT < prev   
Text File  |  1996-02-19  |  1KB  |  41 lines

  1. ---------------------------------------------------------------------
  2. - Callable functions in the INTERNAL Jaguar Operating System (TOS)  -
  3. - ╜ Roine Stenberg '95                                              -
  4. - Last update 960219 for V. 1.08                                    -
  5. ---------------------------------------------------------------------
  6. - All constants are taken from JSERVER.INC                          -
  7. - All registers are saved that are used by JagOS                    -  
  8. ---------------------------------------------------------------------
  9.  
  10. 1. Ask JagOS version number.
  11.    Ver:    1.06
  12.  
  13.     move.l    JS_GETVER,a0
  14.     jsr    (a0)
  15.     cmp.l    #'1.08',d0
  16.     bge    yes            * Yes, version 1.08 OR HIGHER!
  17.  
  18. ---------------------------------------------------------------------
  19.         
  20. 2. Scan Computer keyboard. (DC.W header 0010 must be used also.)
  21.    Ver:    1.08
  22.  
  23.     move.l    JS_GETKEY,a0
  24.     jsr    (a0)
  25.     cmp.l    #$ffffffff,d0        * Something wrong - no key pressed.
  26.     beq    no_char
  27.     cmp.b    #$??,d0            * Normal Atari _scancodes_ from $FFFC02
  28.     beq    yes_press
  29.  
  30. ---------------------------------------------------------------------
  31.  
  32. 3. Tell computer to abort command polling.
  33.    (DC.W header 0010 must be used also.)
  34.    Ver: 1.08
  35.    
  36.        move.l    JS_ABORT,a0
  37.        jsr    (a0)
  38.     cmp.l    #$ffffffff,d0        * Something wrong - abort failed.
  39.     beq    no_abort
  40. ---------------------------------------------------------------------
  41.