home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_03 / JAG_DOX.ZIP / jerry.txt < prev    next >
Text File  |  1996-01-28  |  5KB  |  173 lines

  1. # -------------------------------------------------------------------
  2. # JERRY                                 (c) Copyright 1996 Nat! & KKP
  3. # -------------------------------------------------------------------
  4. # These are some of the results/guesses that Klaus and Nat! found
  5. # out about the Jaguar with a few helpful hints by other people, 
  6. # who'd prefer to remain anonymous. 
  7. #
  8. # Since we are not under NDA or anything from Atari we feel free to 
  9. # give this to you for educational purposes only.
  10. #
  11. # Please note, that this is not official documentation from Atari
  12. # or derived work thereof (both of us have never seen the Atari docs)
  13. # and Atari isn't connected with this in any way.
  14. #
  15. # Please use this informationphile as a starting point for your own
  16. # exploration and not as a reference. If you find anything innacurate,
  17. # missing, needing more explanation etc. by all means please write
  18. # to us:
  19. #      nat@zumdick.rhein-main.de
  20. # or
  21. #      kkp@gamma.dou.dk
  22. #
  23. # If you could do us a small favor, don't use this information for
  24. # those lame flamewars on r.g.v.a or the mailing list.
  25. #
  26. # HTML soon ?
  27. # -------------------------------------------------------------------
  28. # $Id: jerry.txt,v 1.3 1996/01/28 20:51:32 nat Exp $
  29. # -------------------------------------------------------------------
  30. Here are some of the leftovers of JERRY that aren't described in the 
  31. RISC dox.
  32.  
  33.  
  34. JOYSTICK/JOYPAD:
  35. ===============
  36.  
  37. Digital Joypad JOYSTICK:
  38. =-=-=-=-=-=-=-=-=-=-=-=-=
  39.  
  40.    It seems that as a rule the bits are low active in these
  41.    registers.
  42.  
  43.    16       12         8         4         0
  44.    +-+-------^------+--+---------+---------+
  45.    |u|    unused    |mu|  col 1  |  col 0  |  Write only
  46.    +-+--------------+--+---------+---------+
  47.     15                8   7...4     3...0
  48.  
  49.    col 0:   column control of joypad 0 
  50.  
  51.       Here you select which column of the joypad to poll. 
  52.       The columns are:
  53.  
  54.                 Joystick       Joybut 
  55.       col_bit| 3  2  1  0     1    0  
  56.       -------+--+--+--+--    ---+------
  57.          8   | R  L  D  U     A  PAUSE       (RLDU = Joypad directions)
  58.          9   | *  7  4  1     B       
  59.         10   | 2  5  8  0     C       
  60.         11   | 3  6  9  #        OPTION
  61.  
  62.       You select a column my clearing the appropriate bit and setting
  63.       all the other "column" bits. 
  64.  
  65.  
  66.    col1:    column control of joypad 1
  67.  
  68.       This is pretty much the same as for joypad EXCEPT that the
  69.       column addressing is reversed (strange!!)
  70.             
  71.                 Joystick      Joybut 
  72.       col_bit| 3  2  1  0     1    0
  73.       -------+--+--+--+--    ---+------
  74.         12   | 3  6  9  #        OPTION
  75.         13   | 2  5  8  0     C
  76.         14   | *  7  4  1     B
  77.         15   | R  L  D  U     A  PAUSE     (RLDU = Joypad directions)
  78.  
  79.    mute (mu):   sound control
  80.  
  81.       You can turn off the sound by clearing this bit.
  82.  
  83.    unknown  (u):  unknown
  84.  
  85.       Theory: you can bankswitch to another set of Joypad control
  86.               registers. Since we only got two ports, keep this
  87.               set.
  88.     
  89.    16        12        8         4         0
  90.    +---------+---------+---------^---------+
  91.    |  pad 1  |  pad 0  |      unused       |
  92.    +---------+---------+-------------------+
  93.      15...12   11...8          7...0
  94.  
  95.    Reading this register gives you the output of the selected columns
  96.    of the pads.
  97.    The buttons pressed will appear as cleared bits. 
  98.    See the description of the column addressing to map the bits 
  99.    to the buttons.
  100.  
  101.  
  102. JOYBUTS:
  103. =-=-=-=
  104.  
  105.    16       12         8         4         0
  106.    +---------^---------^---------+----+----+
  107.    |               unused        | b1 | b0 |  RO
  108.    +-----------------------------+----+----+
  109.                 15...4            3..2 1..0
  110.    
  111.    b0:   button read out for pad 0
  112.       bit 0:   PAUSE, OPTION status
  113.       bit 1:   A, B, C status
  114.  
  115.    b1:   button read out for pad 1
  116.       bit 2:   PAUSE, OPTION status
  117.       bit 3:   A, B, C status
  118.  
  119.    Returns the status of some of the Joypad buttons. You address which
  120.    information you want with the JOYSTICK register (described above).
  121.  
  122.  
  123. Analog Joystick ANAJOY:
  124. =-=-=-=-=-=-=-=-=-=-=-=
  125.  
  126.    16       12         8         4         0
  127.    +---------^---------^---------^-+--+--+-+
  128.    |            ???                |p |n |a|    WO
  129.    +-------------------------------+--+--+-+
  130.  
  131.    axis (a) :  select X or Y for polling
  132.  
  133.       Set this bit to 1 for Y-axis polling, cleared: X-axis
  134.  
  135.    joystick (n):  select joystick   (??)
  136.    
  137.       Clear for joystick 0, set for joystick 1
  138.  
  139.    poll (p):    poll bit (??)
  140.  
  141.       Set this to one to initiate polling/ADC conversion ?
  142.       It appears that after you start polling you need to give the ADC
  143.       40 us time to convert the value.
  144.  
  145.       
  146.    16       12         8         4         0
  147.    +---------^---------+---------^---------+
  148.    |       unused      |       value       |    RO
  149.    +-------------------+-------------------+
  150.                                7...0
  151.       
  152.    value:   8 bit value from the ADC
  153.  
  154.  
  155.  
  156. CONFIGURATION STUFF:
  157. ===================
  158.  
  159.  
  160. CONFIG:
  161. =-=-=-=
  162.  
  163.   16        12         8         4         0
  164.    +---------^---------^------+--+---------+
  165.    |               ???        |pl|   ???   |
  166.    +--------------------------+--+---------+
  167.              15...5             4    3...0
  168.  
  169.  
  170.    palflag (pl):  
  171.       if this flag is set, you have a NTSC jaguar else
  172.       it's a PAL Jag
  173.