home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_03 / JAG_DOX.ZIP / 68k.txt next >
Text File  |  1996-01-28  |  2KB  |  61 lines

  1. # -------------------------------------------------------------------
  2. # 68K                                   (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: 68k.txt,v 1.1 1996/01/28 20:23:18 nat Exp $
  29. # -------------------------------------------------------------------
  30.  
  31. Preface:
  32.    There isn't much we need to tell you about the 68K. First you 
  33.    already know the chip since ten years probably, and secondly 
  34.    there are enough reference books available in case your memory
  35.    is failing you. Let's just look at the way the processor is bound
  36.    into the system and somethings to watch out.
  37.  
  38.  
  39. IRQs:
  40. =-=-=
  41.  
  42.       IPL         Name           Vector            Control
  43.    ---------+---------------+---------------+---------------
  44.     Level 2    VBLANK IRQ         $100         INT1 bit #0 
  45.  
  46.    A typical way to install a VBL handler for the 68000 would be something
  47.    like this, you gotta supply "last_line" and "handler"
  48.  
  49.    V_LEVEL0 = $100
  50.    VI       = $F004E
  51.    INT1     = $F00E0
  52.    INT2     = $F00E2
  53.    
  54.          move.w   #$2700,sr         ;; no IRQs please
  55.          move.l   #handler,$100     ;; install our routine
  56.  
  57.          move.w   #last_line,$F004E ;; scanline where IRQ should occur
  58.                                     ;; should be 'odd' BTW
  59.          move.w   #1,INT1           ;; enable LEVEL 0 IRQ
  60.          move.w   #$2100,sr         ;; enable all IRQs on the 68K
  61.