trunk/src/mame/drivers/ttchamp.c
| r245124 | r245125 | |
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | | |
| 208 | #if 0 |
| 209 | 209 | for (int i = 0; i < 0x8000; i++) |
| 210 | 210 | { |
| 211 | 211 | // how are layers cleared? |
| r245124 | r245125 | |
| 215 | 215 | // m_videoram1[i] = 0x0000; |
| 216 | 216 | // m_videoram2[i] = 0x0000; |
| 217 | 217 | } |
| 218 | | |
| 218 | #endif |
| 219 | |
| 219 | 220 | return 0; |
| 220 | 221 | } |
| 221 | 222 | |
| r245124 | r245125 | |
| 381 | 382 | |
| 382 | 383 | WRITE16_MEMBER(ttchamp_state::port10_w) |
| 383 | 384 | { |
| 385 | UINT8 res; |
| 384 | 386 | COMBINE_DATA(&m_port10); |
| 387 | |
| 388 | res = m_port10 & 0xf0; |
| 389 | /* Assume that both bits clears layers. */ |
| 390 | if(res == 0x30) |
| 391 | { |
| 392 | for (int i = 0; i < 0x8000; i++) |
| 393 | { |
| 394 | m_videoram0[i] = 0x0000; |
| 395 | m_videoram2[i] = 0x0000; |
| 396 | } |
| 397 | } |
| 398 | else if(res != 0) |
| 399 | printf("Check me, i/o 0x10 used with %02x\n",res); |
| 385 | 400 | } |
| 386 | 401 | |
| 387 | 402 | WRITE16_MEMBER(ttchamp_state::port20_w) |
| r245124 | r245125 | |
| 389 | 404 | printf("%06x: port20_w %04x %04x\n", space.device().safe_pc(), data, mem_mask); |
| 390 | 405 | // seems to somehow be tied to layer clear |
| 391 | 406 | // might also depend on layer selected with 0x10 tho? written after it |
| 392 | | for (int i = 0; i < 0x8000; i++) |
| 407 | /*for (int i = 0; i < 0x8000; i++) |
| 393 | 408 | { |
| 394 | 409 | // m_videoram0[i] = 0x0000; |
| 395 | 410 | m_videoram2[i] = 0x0000; |
| 396 | | } |
| 411 | }*/ |
| 397 | 412 | |
| 398 | 413 | } |
| 399 | 414 | |