1
0

equates.asm 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. ;; 68HC12 Equates
  2. ;; Copyright (c) 1998, Thomas Almy. All rights reserved.
  3. ;; License is granted users of his 68HC12 Simulator
  4. ;; to use this file as part of their own programs for
  5. ;; educational or personal (but not commercial) use. This
  6. ;; file may not be given or sold to anyone without permission
  7. ;; of the author.
  8. ;; Thomas Almy makes no representation about the suitability
  9. ;; of this software for any purpose. It is provided as is without
  10. ;; warranty of any kind, expressed or implied.
  11. REGBASE EQU $0 ; Register base
  12. RAMSTART EQU $800 ; Start of internal RAM
  13. RAMEND EQU $A00 ; Start of DBUG internal RAM
  14. ; (can't use this!)
  15. PRSTART EQU $4000 ; Start of program Memory
  16. ;; Functions in the D-BUG12
  17. GetChar EQU $fe02
  18. PutChar EQU $fe04
  19. SetUserVector EQU $fe1a ; Thse are the only functions
  20. ; implemented in the Emulator
  21. UserPortHKWU EQU 7 ; Equates for SetUserVector() function
  22. UserPortJKWU EQU 8
  23. UserAtoD EQU 9
  24. UserSCI1 EQU 10
  25. UserSCI0 EQU 11
  26. UserSPI0 EQU 12
  27. UserTimerCh0 EQU 23
  28. UserTimerCh1 EQU 22
  29. UserTimerCh2 EQU 21
  30. UserTimerCh3 EQU 20
  31. UserTimerCh4 EQU 19
  32. UserTimerCh5 EQU 18
  33. UserTimerCh6 EQU 17
  34. UserTimerCh7 EQU 16
  35. UserPAccOvf EQU 14
  36. UserPAccEdge EQU 13
  37. UserTimerOvf EQU 15
  38. UserRTI EQU 24
  39. UserIRQ EQU 25
  40. UserXIRQ EQU 26
  41. UserSWI EQU 27
  42. UserTrap EQU 28
  43. RAMVectAddr EQU -1
  44. PORTA EQU $00+REGBASE
  45. PORTB EQU $01+REGBASE
  46. DDRA EQU $02+REGBASE
  47. DDRB EQU $03+REGBASE
  48. PORTC EQU $04+REGBASE
  49. PORTD EQU $05+REGBASE
  50. DDRC EQU $06+REGBASE
  51. DDRD EQU $07+REGBASE
  52. PORTE EQU $08+REGBASE
  53. DDRE EQU $09+REGBASE
  54. PEAR EQU $0A+REGBASE
  55. MODE EQU $0B+REGBASE
  56. PUCR EQU $0C+REGBASE
  57. RDRIV EQU $0D+REGBASE
  58. INITRM EQU $10+REGBASE ; IO Registers
  59. INITRG EQU $11+REGBASE
  60. INITEE EQU $12+REGBASE
  61. MISC EQU $13+REGBASE
  62. RTICTL EQU $14+REGBASE
  63. RTIFLG EQU $15+REGBASE
  64. COPCTL EQU $16+REGBASE
  65. COPRST EQU $17+REGBASE
  66. ITST0 EQU $18+REGBASE
  67. ITST1 EQU $19+REGBASE
  68. ITST2 EQU $1A+REGBASE
  69. ITST3 EQU $1B+REGBASE
  70. INTCR EQU $1E+REGBASE
  71. HPRIO EQU $1F+REGBASE
  72. PORTH EQU $24+REGBASE
  73. DDRH EQU $25+REGBASE
  74. KWIEH EQU $26+REGBASE
  75. KWIFH EQU $27+REGBASE
  76. PORTJ EQU $28+REGBASE
  77. DDRJ EQU $29+REGBASE
  78. KWIEJ EQU $2A+REGBASE
  79. KWIFJ EQU $2B+REGBASE
  80. KPOLJ EQU $2C+REGBASE
  81. PUPSJ EQU $2D+REGBASE
  82. PULEJ EQU $2E+REGBASE
  83. PORTF EQU $30+REGBASE
  84. PORTG EQU $31+REGBASE
  85. DDRF EQU $32+REGBASE
  86. DDRG EQU $33+REGBASE
  87. DPAGE EQU $34+REGBASE
  88. PPAGE EQU $35+REGBASE
  89. EPAGE EQU $36+REGBASE
  90. WINDEF EQU $37+REGBASE
  91. MXAR EQU $38+REGBASE
  92. CSCTL0 EQU $3C+REGBASE
  93. CSCTL1 EQU $3D+REGBASE
  94. CSSTR0 EQU $3E+REGBASE
  95. CSSTR1 EQU $3F+REGBASE
  96. LDV EQU $40+REGBASE
  97. RDV EQU $42+REGBASE
  98. CLKCTL EQU $47+REGBASE
  99. ATDCTL0 EQU $60+REGBASE
  100. ATDCTL1 EQU $61+REGBASE
  101. ATDCTL2 EQU $62+REGBASE
  102. ATDCTL3 EQU $63+REGBASE
  103. ATDCTL4 EQU $64+REGBASE
  104. ATDCTL5 EQU $65+REGBASE
  105. ATDSTAT EQU $66+REGBASE
  106. ATDTEST EQU $68+REGBASE
  107. PORTAD EQU $6F+REGBASE
  108. ADR0H EQU $70+REGBASE
  109. ADR1H EQU $72+REGBASE
  110. ADR2H EQU $74+REGBASE
  111. ADR3H EQU $76+REGBASE
  112. ADR4H EQU $78+REGBASE
  113. ADR5H EQU $7A+REGBASE
  114. ADR6H EQU $7C+REGBASE
  115. ADR7H EQU $7E+REGBASE
  116. TIOS EQU $80+REGBASE
  117. CFORC EQU $81+REGBASE
  118. OC7M EQU $82+REGBASE
  119. OC7D EQU $83+REGBASE
  120. TCNT EQU $84+REGBASE
  121. TSCR EQU $86+REGBASE
  122. TCTL1 EQU $88+REGBASE
  123. TCTL2 EQU $89+REGBASE
  124. TCTL3 EQU $8A+REGBASE
  125. TCTL4 EQU $8B+REGBASE
  126. TMSK1 EQU $8C+REGBASE
  127. TMSK2 EQU $8D+REGBASE
  128. TFLG1 EQU $8E+REGBASE
  129. TFLG2 EQU $8F+REGBASE
  130. TC0 EQU $90+REGBASE
  131. TC1 EQU $92+REGBASE
  132. TC2 EQU $94+REGBASE
  133. TC3 EQU $96+REGBASE
  134. TC4 EQU $98+REGBASE
  135. TC5 EQU $9A+REGBASE
  136. TC6 EQU $9C+REGBASE
  137. TC7 EQU $9E+REGBASE
  138. PACTL EQU $A0+REGBASE
  139. PAFLG EQU $A1+REGBASE
  140. PACNT EQU $A2+REGBASE
  141. TIMTST EQU $AD+REGBASE
  142. PORTT EQU $AE+REGBASE
  143. DDRT EQU $AF+REGBASE
  144. SC0BDH EQU $C0+REGBASE
  145. SC0BDL EQU $C1+REGBASE
  146. SC0CR1 EQU $C2+REGBASE
  147. SC0CR2 EQU $C3+REGBASE
  148. SC0SR1 EQU $C4+REGBASE
  149. SC0SR2 EQU $C5+REGBASE
  150. SC0DRH EQU $C6+REGBASE
  151. SC0DRL EQU $C7+REGBASE
  152. SC1BDH EQU $C8+REGBASE
  153. SC1BDL EQU $C9+REGBASE
  154. SC1CR1 EQU $CA+REGBASE
  155. SC1CR2 EQU $CB+REGBASE
  156. SC1SR1 EQU $CC+REGBASE
  157. SC1SR2 EQU $CD+REGBASE
  158. SC1DRH EQU $CE+REGBASE
  159. SC1DRL EQU $CF+REGBASE
  160. SP0CR1 EQU $D0+REGBASE
  161. SP0CR2 EQU $D1+REGBASE
  162. SP0BR EQU $D2+REGBASE
  163. SP0SR EQU $D3+REGBASE
  164. SP0DR EQU $D5+REGBASE
  165. PORTS EQU $D6+REGBASE
  166. DDRS EQU $D7+REGBASE
  167. EEMCR EQU $F0+REGBASE
  168. EEPROT EQU $F1+REGBASE
  169. EETST EQU $F2+REGBASE
  170. EEPROG EQU $F3+REGBASE