Previous 15994 Revisions Next

r5544 Sunday 30th August, 2009 at 13:17:45 UTC by Angelo Salese
[X1]: Implemented ex gfxram behaviour, this fixes the layer clearances and the bitmap-style sprites
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5543r5544
1212   - Add multiple FDC drive support;
1313   - clean-ups!
1414   - There are various unclear video things, these are:
15      - how layer clearance works? Dragon Buster relies on it
1615      - PCG reset address is tied to the screen beams in some way;
1716      - Support the alternative PCG upload mode;
1817      - Add the extended gfx hookup;
1918      - (anything else?)
2019
2120   per-game specific TODO:
22   - 177 / Dragon Buster / (many others): fix the keyboard obf flag otherwise these doesn't boot;
2321   - Shanghai: tests the ay8910 read regs, mouse/joystick perhaps?
2422   - Gaia/Space Harrier: Hits the FDC drive assert, the latter boots but has heavy emulation
2523     video/logic problems;
r5543r5544
2725   - Bosconian: title screen background is completely white because it reverts the pen used
2826     (it's gray in the Arcade version),could be either flickering for pseudo-alpha effect or it's
2927     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.
3031
3132   Notes:
3233   - 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.
3537
3638=================================================================================================
3739
r5543r5544
639641
640642static WRITE8_HANDLER( x1_ex_gfxram_w )
641643{
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; }
644654}
645655
646656static WRITE8_HANDLER( x1_scrn_w )
647657{
648658   scrn_reg.pcg_mode = (data & 0x20)>>5;
649   scrn_reg.gfx_bank = (data & 0x10)>>4;
659   scrn_reg.gfx_bank = 0;//(data & 0x10)>>4;
650660}
651661
652662static WRITE8_HANDLER( x1_ply_w )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team