home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / e / amigae / modulessrc / graphics / copper.e < prev    next >
Text File  |  1995-07-05  |  2KB  |  80 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'graphics/view'
  7.  
  8. CONST COPPER_MOVE=0,
  9.       COPPER_WAIT=1,
  10.       CPRNXTBUF=2,
  11.       CPR_NT_LOF=$8000,
  12.       CPR_NT_SHT=$4000,
  13.       CPR_NT_SYS=$2000
  14.  
  15. OBJECT copins
  16.   opcode:INT
  17. -> a) next two INTs are unioned with "nxtlist:PTR TO coplist"
  18. -> b) next INT is unioned with "destaddr:INT"
  19.   vwaitpos:INT
  20. -> b) next INT is unioned with "destdata:INT"
  21.   hwaitpos:INT
  22. ENDOBJECT     /* SIZEOF=6 */
  23.  
  24. #define VWAITPOS vwaitpos
  25. #define DESTADDR vwaitpos
  26. #define HWAITPOS hwaitpos
  27. #define DESTDATA hwaitpos
  28.  
  29. OBJECT cprlist
  30.   next:PTR TO cprlist
  31.   start:PTR TO INT  -> Target is unsigned
  32.   maxcount:INT
  33. ENDOBJECT     /* SIZEOF=10 */
  34.  
  35. OBJECT coplist
  36.   next:PTR TO coplist
  37. -> Um, these had illegal names
  38.   coplist_:PTR TO coplist
  39.   viewport_:PTR TO viewport
  40.   copins:PTR TO copins
  41.   copptr:PTR TO copins
  42.   coplstart:PTR TO INT  -> Target is unsigned
  43.   copsstart:PTR TO INT  -> Target is unsigned
  44.   count:INT
  45.   maxcount:INT
  46.   dyoffset:INT
  47. -> Um, if V1_3 only?
  48. ->  cop2start:PTR TO INT
  49. ->  cop3start:PTR TO INT
  50. ->  cop4start:PTR TO INT
  51. ->  cop5start:PTR TO INT
  52.   slrepeat:INT  -> This is unsigned
  53.   flags:INT  -> This is unsigned
  54. ENDOBJECT     /* SIZEOF=50 */
  55.  
  56. CONST EXACT_LINE=1,
  57.       HALF_LINE=2
  58.  
  59. OBJECT ucoplist
  60.   next:PTR TO ucoplist
  61.   firstcoplist:PTR TO coplist
  62.   coplist:PTR TO coplist
  63. ENDOBJECT     /* SIZEOF=12 */
  64.  
  65. OBJECT copinit
  66.   vsync_hblank[2]:ARRAY OF INT  -> Array is unsigned
  67.   diagstrt[12]:ARRAY OF INT  -> Array is unsigned
  68.   fm0[2]:ARRAY OF INT  -> Array is unsigned
  69.   diwstart[10]:ARRAY OF INT  -> Array is unsigned
  70.   bplcon2[2]:ARRAY OF INT  -> Array is unsigned
  71.   sprfix[16]:ARRAY OF INT  -> Array is unsigned
  72.   sprstrtup[32]:ARRAY OF INT  -> Array is unsigned
  73.   wait14[2]:ARRAY OF INT  -> Array is unsigned
  74.   norm_hblank[2]:ARRAY OF INT  -> Array is unsigned
  75.   jump[2]:ARRAY OF INT  -> Array is unsigned
  76.   wait_forever[6]:ARRAY OF INT  -> Array is unsigned
  77.   sprstop[8]:ARRAY OF INT  -> Array is unsigned
  78. ENDOBJECT     /* SIZEOF=192 */
  79.  
  80.