src/mess/drivers/vk100.c
| r15660 | r15661 | |
| 467 | 467 | machine().scheduler().timer_set(attotime::zero, FUNC(execute_vg)); |
| 468 | 468 | } |
| 469 | 469 | |
| 470 | | /* port 0x67: "EX ER" execute an arbitrary bresenham vector (start the state machine) */ |
| 470 | /* port 0x67: "EX ER" execute an "erase"? */ |
| 471 | 471 | WRITE8_MEMBER(vk100_state::vgEX_ER) |
| 472 | 472 | { |
| 473 | 473 | #ifdef VG60_VERBOSE |
| r15660 | r15661 | |
| 514 | 514 | * this appears to be the only way the vram can be READ by the cpu |
| 515 | 515 | |
| 516 | 516 | 31D reads and checks d7 in a loop |
| 517 | | 205 reads, xors with 0x55 (from reg D), ANDS result with 0x78 and branches if it is not zero (checking for bit pattern 0101?) |
| 517 | 205 reads, xors with 0x55 (from reg D), ANDS result with 0x78 and branches if it is not zero (checking for bit pattern 1010?) |
| 518 | 518 | 299 reads, rotates result right 3 times and ANDs the result with 0x0F |
| 519 | 519 | 2A4 reads, rotates result left 1 time and ANDS the result with 0xF0 |
| 520 | 520 | */ |
| r15660 | r15661 | |
| 531 | 531 | * d7 d6 d5 d4 d3 d2 d1 d0 |
| 532 | 532 | * according to the code at 606, the systat b register has something |
| 533 | 533 | * to do with the uart 8251, though what exactly is unclear. |
| 534 | * the ACTS (inverse of DCTS) signal lives in one of these bits (see 5-62) |
| 534 | 535 | * it XORs the read of systat_b with the E register (which holds 0x6) |
| 535 | 536 | * and checks the result |
| 536 | 537 | */ |