vcs.h.old 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. ;
  2. ; VCS system equates
  3. ;
  4. ; Vertical blank registers
  5. ;
  6. VSYNC = $00
  7. ;VS_Enable = 2
  8. ;
  9. VBLANK = $01
  10. ;VB_Enable = 2
  11. ;VB_Disable = 0
  12. ;VB_LatchEnable = 64
  13. ;VB_LatchDisable = 0
  14. ;VB_DumpPots = 128
  15. ; I don't know a good name to un-dump the pots,
  16. ; at least that makes sense.
  17. WSYNC = $02
  18. RSYNC = $03 ;for sadists
  19. ;
  20. ; Size registers for players and missiles
  21. ;
  22. NUSIZ0 = $04
  23. NUSIZ1 = $05
  24. ;P_Single = 0
  25. ;P_TwoClose = 1
  26. ;P_TwoMedium = 2
  27. ;P_ThreeClose = 3
  28. ;P_TwoFar = 4
  29. ;P_Double = 5
  30. ;P_ThreeMedium = 6
  31. ;P_Quad = 7
  32. ;M_Single = $00
  33. ;M_Double = $10
  34. ;M_Quad = $20
  35. ;M_Oct = $40
  36. ;
  37. ; Color registers
  38. ;
  39. COLUP0 = $06
  40. COLUP1 = $07
  41. COLUPF = $08
  42. COLUBK = $09
  43. ;
  44. ; Playfield Control
  45. ;
  46. CTRLPF = $0A
  47. ;PF_Reflect = $01
  48. ;PF_Score = $02
  49. ;PF_Priority = $04
  50. ; Use missile equates to set ball width.
  51. REFP0 = $0B
  52. REFP1 = $0C
  53. ;P_Reflect = $08
  54. PF0 = $0D
  55. PF1 = $0E
  56. PF2 = $0F
  57. RESP0 = $10
  58. RESP1 = $11
  59. RESM0 = $12
  60. RESM1 = $13
  61. RESBL = $14
  62. AUDC0 = $15
  63. AUDC1 = $16
  64. AUDF0 = $17
  65. AUDF1 = $18
  66. AUDV0 = $19
  67. AUDV1 = $1A ;duh
  68. ;
  69. ; Players
  70. ;
  71. GRP0 = $1B
  72. GRP1 = $1C
  73. ;
  74. ; Single-bit objects
  75. ;
  76. ENAM0 = $1D
  77. ENAM1 = $1E
  78. ENABL = $1F
  79. ;M_Enable = 2
  80. HMP0 = $20
  81. HMP1 = $21
  82. HMM0 = $22
  83. HMM1 = $23
  84. HMBL = $24
  85. ; Miscellaneous
  86. VDELP0 = $25
  87. VDEL01 = $26
  88. VDELP1 = $26
  89. VDELBL = $27
  90. RESMP0 = $28
  91. RESMP1 = $29
  92. HMOVE = $2A
  93. HMCLR = $2B
  94. CXCLR = $2C
  95. CXM0P = $30
  96. CXM1P = $31
  97. CXP0FB = $32
  98. CXP1FB = $33
  99. CXM0FB = $34
  100. CXM1FB = $35
  101. CXBLPF = $36
  102. CXPPMM = $37
  103. INPT0 = $38
  104. INPT1 = $39
  105. INPT2 = $3A
  106. INPT3 = $3B
  107. INPT4 = $3C
  108. INPT5 = $3D
  109. ;
  110. ; Switch A equates.
  111. ;
  112. ; There are more elegant ways than using all eight of these. :-)
  113. ;
  114. SWCHA = $0280
  115. ;J0_Right = $80
  116. ;J0_Left = $40
  117. ;J0_Down = $20
  118. ;J0_Up = $10
  119. ;J1_Right = $08
  120. ;J1_Left = $04
  121. ;J1_Down = $02
  122. ;J1_up = $01
  123. ;
  124. ; Switch B equates
  125. ;
  126. SWCHB = $0282
  127. ;P0_Diff = $80
  128. ;P1_Diff = $40
  129. ;Con_Color = $08
  130. ;Con_Select = $02
  131. ;Con_Start = $01
  132. ;
  133. ; Switch Control
  134. ;
  135. SWACNT = $281
  136. SWBCNT = $283
  137. ;
  138. ; Timer
  139. ;
  140. INTIM = $0284
  141. TIM1T = $0294
  142. TIM8T = $0295
  143. TIM64T = $0296
  144. TIM1024T = $0297