8 /* General internal/io stuff */
28 /* Interrupts flags */
92 #define REG(n) ram.hi[(n)]
96 /* General internal/io stuff */
98 #define R_P1 REG(RI_P1)
99 #define R_SB REG(RI_SB)
100 #define R_SC REG(RI_SC)
101 #define R_DIV REG(RI_DIV)
102 #define R_TIMA REG(RI_TIMA)
103 #define R_TMA REG(RI_TMA)
104 #define R_TAC REG(RI_TAC)
106 #define R_KEY1 REG(RI_KEY1)
108 #define R_RP REG(RI_RP)
110 #define R_SVBK REG(RI_SVBK)
114 /* Interrupts flags */
116 #define R_IF REG(RI_IF)
117 #define R_IE REG(RI_IE)
124 #define R_LCDC REG(RI_LCDC)
125 #define R_STAT REG(RI_STAT)
126 #define R_SCY REG(RI_SCY)
127 #define R_SCX REG(RI_SCX)
128 #define R_LY REG(RI_LY)
129 #define R_LYC REG(RI_LYC)
130 #define R_DMA REG(RI_DMA)
131 #define R_BGP REG(RI_BGP)
132 #define R_OBP0 REG(RI_OBP0)
133 #define R_OBP1 REG(RI_OBP1)
134 #define R_WY REG(RI_WY)
135 #define R_WX REG(RI_WX)
137 #define R_VBK REG(RI_VBK)
139 #define R_HDMA1 REG(RI_HDMA1)
140 #define R_HDMA2 REG(RI_HDMA2)
141 #define R_HDMA3 REG(RI_HDMA3)
142 #define R_HDMA4 REG(RI_HDMA4)
143 #define R_HDMA5 REG(RI_HDMA5)
145 #define R_BCPS REG(RI_BCPS)
146 #define R_BCPD REG(RI_BCPD)
147 #define R_OCPS REG(RI_OCPS)
148 #define R_OCPD REG(RI_OCPD)
154 #define R_NR10 REG(RI_NR10)
155 #define R_NR11 REG(RI_NR11)
156 #define R_NR12 REG(RI_NR12)
157 #define R_NR13 REG(RI_NR13)
158 #define R_NR14 REG(RI_NR14)
159 #define R_NR21 REG(RI_NR21)
160 #define R_NR22 REG(RI_NR22)
161 #define R_NR23 REG(RI_NR23)
162 #define R_NR24 REG(RI_NR24)
163 #define R_NR30 REG(RI_NR30)
164 #define R_NR31 REG(RI_NR31)
165 #define R_NR32 REG(RI_NR32)
166 #define R_NR33 REG(RI_NR33)
167 #define R_NR34 REG(RI_NR34)
168 #define R_NR41 REG(RI_NR41)
169 #define R_NR42 REG(RI_NR42)
170 #define R_NR43 REG(RI_NR43)
171 #define R_NR44 REG(RI_NR44)
172 #define R_NR50 REG(RI_NR50)
173 #define R_NR51 REG(RI_NR51)
174 #define R_NR52 REG(RI_NR52)