src/mess/drivers/x1.c
| r5543 | r5544 | |
| 12 | 12 | - Add multiple FDC drive support; |
| 13 | 13 | - clean-ups! |
| 14 | 14 | - There are various unclear video things, these are: |
| 15 | | - how layer clearance works? Dragon Buster relies on it |
| 16 | 15 | - PCG reset address is tied to the screen beams in some way; |
| 17 | 16 | - Support the alternative PCG upload mode; |
| 18 | 17 | - Add the extended gfx hookup; |
| 19 | 18 | - (anything else?) |
| 20 | 19 | |
| 21 | 20 | per-game specific TODO: |
| 22 | | - 177 / Dragon Buster / (many others): fix the keyboard obf flag otherwise these doesn't boot; |
| 23 | 21 | - Shanghai: tests the ay8910 read regs, mouse/joystick perhaps? |
| 24 | 22 | - Gaia/Space Harrier: Hits the FDC drive assert, the latter boots but has heavy emulation |
| 25 | 23 | video/logic problems; |
| r5543 | r5544 | |
| 27 | 25 | - Bosconian: title screen background is completely white because it reverts the pen used |
| 28 | 26 | (it's gray in the Arcade version),could be either flickering for pseudo-alpha effect or it's |
| 29 | 27 | a btanb; |
| 28 | - Dragon Slayer: colors aren't 100% and for whatever reason it doesn't clear the screen on the |
| 29 | gameplay. |
| 30 | - Super Mario Bros. SP: background color is black, should be blue. |
| 30 | 31 | |
| 31 | 32 | Notes: |
| 32 | 33 | - An interesting feature of the Sharp X-1 is the extended i/o bank. When the ppi port c bit 5 |
| 33 | | does a 1->0 transition, the HW i/o is banked with an extra bitmap RAM to the entire 0-ffff |
| 34 | | space, presumably for 640x200 bitmap gfxs. Any i/o read disables this extended bitmap ram. |
| 34 | does a 1->0 transition, any write to the i/o space accesses 2 or 3 banks gradients of the bitmap RAM |
| 35 | with a single write (generally used for layer clearances and bitmap-style sprites). |
| 36 | Any i/o read disables this extended bitmap ram. |
| 35 | 37 | |
| 36 | 38 | ================================================================================================= |
| 37 | 39 | |
| r5543 | r5544 | |
| 639 | 641 | |
| 640 | 642 | static WRITE8_HANDLER( x1_ex_gfxram_w ) |
| 641 | 643 | { |
| 642 | | // if(data) |
| 643 | | // fatalerror("Extended GFX RAM write %02x %04x",data,offset); |
| 644 | static UINT8 ex_mask; |
| 645 | |
| 646 | if (offset >= 0x0000 && offset <= 0x3fff) { ex_mask = 7; } |
| 647 | else if(offset >= 0x4000 && offset <= 0x7fff) { ex_mask = 6; } |
| 648 | else if(offset >= 0x8000 && offset <= 0xbfff) { ex_mask = 5; } |
| 649 | else { ex_mask = 3; } |
| 650 | |
| 651 | if(ex_mask & 1) { gfx_bitmap_ram[offset+0x0000] = data; } |
| 652 | if(ex_mask & 2) { gfx_bitmap_ram[offset+0x4000] = data; } |
| 653 | if(ex_mask & 4) { gfx_bitmap_ram[offset+0x8000] = data; } |
| 644 | 654 | } |
| 645 | 655 | |
| 646 | 656 | static WRITE8_HANDLER( x1_scrn_w ) |
| 647 | 657 | { |
| 648 | 658 | scrn_reg.pcg_mode = (data & 0x20)>>5; |
| 649 | | scrn_reg.gfx_bank = (data & 0x10)>>4; |
| 659 | scrn_reg.gfx_bank = 0;//(data & 0x10)>>4; |
| 650 | 660 | } |
| 651 | 661 | |
| 652 | 662 | static WRITE8_HANDLER( x1_ply_w ) |