home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / 326-350 / apd336 / mc68000 / consts.s < prev    next >
Text File  |  1991-10-08  |  3KB  |  118 lines

  1. * Exec definitions
  2.  
  3. Execbase    EQU 4        * base of exec functions
  4. ExecBase    EQU 4
  5. OpenLibrary    EQU -408
  6.  
  7. * Graphic library bits
  8. FreeSprite    EQU -414
  9. OwnBlitter    EQU -432
  10.  
  11. *** dos offsets
  12. Open        EQU -30
  13. Close        EQU -36
  14. Read        EQU -42
  15. Write        EQU -48
  16. Delay        EQU -198
  17.  
  18. * Amiga graphics definitions
  19. CUSTOM        EQU $dff000    * custom chip base
  20.  
  21. BPLCON0        EQU $dff100    * bit plane control
  22. BPLCON1        EQU $dff102    * scroll reg
  23. BPLCON2        EQU $dff104    * priority
  24.  
  25. BPL1MOD        EQU $dff108    * modulus
  26. BPL2MOD        EQU $dff10a    * modulus
  27.  
  28. DDFSTRT        EQU $dff092
  29. DDFSTOP        EQU $dff094
  30. DIWSTRT        EQU $dff08E
  31. DIWSTOP        EQU $dff090        
  32. VPOSR            EQU $dff004    * lsb if vertical pos
  33. VHPOSR        EQU $dff006    * vertical pos of beam
  34. COLOR0        EQU $dff180    * base of palette table
  35. DMACONR        EQU $dff002
  36. DMACONW        EQU $dff096
  37.  
  38. BPL1PTH        EQU $dff0E0    * bit plane 1
  39.  
  40. BPL2PTH        EQU $dff0E4    * bit plane 2
  41.  
  42. BPL3PTH        EQU $dff0e8    * bit plane 3
  43.  
  44. BPL4PTH        EQU $dff0ee    * bit plane 4
  45.  
  46. INTREQR        EQU $dff01e    * interrupt requests (read)
  47. INTENAR        EQU $dff01c    * enable read
  48. INTREQ        EQU $dff09c    * int req write
  49. INTENA        EQU $dff09a    * interrupt enable
  50.  
  51. JOY0DAT        EQU $dff00a    * joystick 0 offset
  52. JOY1DAT        EQU $dff00c    * joystick data offset
  53.  
  54. COP1LCH        EQU $dff080    * copper list latch
  55. COPJMP1        EQU $dff088
  56.  
  57. SPR0PTH        EQU $dff120    * sprite 0 pointer
  58. SPR0POS        EQU $dff140    * start of sprite controls
  59.  
  60. **** blitter consts *****
  61. BLTCON0        EQU $dff040    * control 0
  62. BLTCON1        EQU $dff042    * control 1
  63. BLTAFWM        EQU $dff044    * mask A high
  64. BLTALWM        EQU $dff046    * mask A low
  65. BLTCPTH        EQU $dff048    * pointer source C
  66. BLTBPTH        EQU $dff04c    * pointer source B
  67. BLTAPTH        EQU $dff050    * pointer source A
  68. BLTDPTH        EQU $dff054    * pointer dest D
  69. BLTSIZE        EQU $dff058    * w/h and start 
  70. BLTCMOD        EQU $dff060    * modulo for C
  71. BLTBMOD        EQU $dff062    *    "    "  B
  72. BLTAMOD        EQU $dff064    *    "    "  A
  73. BLTDMOD        EQU $dff066    *    "    "  D
  74. BLTCDAT        EQU $dff070    * C data reg
  75. BLTBDAT        EQU $dff072    * B   "   "
  76. BLTADAT        EQU $dff074    * A   "   "
  77.  
  78. **** Audio constants ****
  79. AUD0LCH        EQU $dff0a0    * audio data start
  80. AUD1LCH        EQU $dff0b0    * audio data start
  81. AUD2LCH        EQU $dff0c0    * audio data start
  82. AUD3LCH        EQU $dff0d0    * audio data start
  83.  
  84. AUD0LEN        EQU $dff0a4    * audio data length (words)
  85. AUD1LEN        EQU $dff0b4    * audio data length (words)
  86. AUD2LEN        EQU $dff0c4    * audio data length (words)
  87. AUD3LEN        EQU $dff0d4    * audio data length (words)
  88.  
  89. AUD0PER        EQU $dff0a6    * sample play rate
  90. AUD1PER        EQU $dff0b6    * sample play rate
  91. AUD2PER        EQU $dff0c6    * sample play rate
  92. AUD3PER        EQU $dff0d6    * sample play rate
  93.  
  94. AUD0VOL        EQU $dff0a8    * volume 0-64
  95. AUD1VOL        EQU $dff0b8    * volume 0-64
  96. AUD2VOL        EQU $dff0c8    * volume 0-64
  97. AUD3VOL        EQU $dff0d8    * volume 0-64
  98.  
  99. ADKCON        EQU $dff09e    * modulation control
  100.  
  101. * for lightgun *
  102. POTGOR        EQU $dff016    * light port read
  103. POTGO            EQU $dff034    * light port write
  104.  
  105. * constants common to ST aswell *
  106. KeyAddr        EQU $bfec01
  107. F1_key        EQU 95
  108. F2_key        EQU 93
  109. F3_key        EQU 91
  110. F4_key        EQU 89
  111. F5_key        EQU 87
  112. F6_key        EQU 85
  113. F7_key        EQU 83
  114. F8_key        EQU 81
  115. F9_key        EQU 79
  116. F10_key        EQU 77
  117. SPACE_BAR        EQU 127
  118. ***********************************************************