trunk/src/mame/drivers/go2000.c
| r18377 | r18378 | |
| 177 | 177 | |
| 178 | 178 | UINT32 go2000_state::screen_update_go2000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 179 | 179 | { |
| 180 | | int x,y; |
| 181 | 180 | int count = 0; |
| 182 | 181 | |
| 183 | 182 | /* 0x600000 - 0x601fff / 0x610000 - 0x611fff */ |
| 184 | | for (x = 0; x < 64; x++) |
| 183 | for (int x = 0; x < 64; x++) |
| 185 | 184 | { |
| 186 | | for (y = 0; y < 32; y++) |
| 185 | for (int y = 0; y < 32; y++) |
| 187 | 186 | { |
| 188 | 187 | int tile = m_videoram[count]; |
| 189 | 188 | int attr = m_videoram2[count]; |
| r18377 | r18378 | |
| 193 | 192 | } |
| 194 | 193 | |
| 195 | 194 | /* 0x602000 - 0x603fff / 0x612000 - 0x613fff */ |
| 196 | | for (x = 0; x < 64; x++) |
| 195 | for (int x = 0; x < 64; x++) |
| 197 | 196 | { |
| 198 | | for (y = 0; y < 32; y++) |
| 197 | for (int y = 0; y < 32; y++) |
| 199 | 198 | { |
| 200 | 199 | int tile = m_videoram[count]; |
| 201 | 200 | int attr = m_videoram2[count]; |
| r18377 | r18378 | |
| 205 | 204 | } |
| 206 | 205 | |
| 207 | 206 | /*Sprite RAM code actually copied from video/suna16.c with minor modifications.*/ |
| 208 | | { |
| 209 | | int offs; |
| 210 | | |
| 211 | 207 | int max_x = machine().primary_screen->width() - 8; |
| 212 | 208 | int max_y = machine().primary_screen->height() - 8; |
| 213 | 209 | |
| 214 | | for (offs = 0xf800 / 2; offs < 0x10000 / 2 ; offs += 4/2) |
| 210 | for (int offs = 0xf800 / 2; offs < 0x10000 / 2 ; offs += 4/2) |
| 215 | 211 | { |
| 216 | 212 | int srcpg, srcx, srcy, dimx, dimy; |
| 217 | 213 | int tile_x, tile_xinc, tile_xstart; |
| r18377 | r18378 | |
| 301 | 297 | |
| 302 | 298 | tile_y += tile_yinc; |
| 303 | 299 | } |
| 304 | | |
| 305 | 300 | } |
| 306 | | } |
| 307 | 301 | |
| 308 | 302 | return 0; |
| 309 | 303 | } |