mirror of
https://github.com/holub/mame
synced 2025-05-31 18:11:50 +03:00
02843: schaser, schasrcv, polaris: Only half the color RAM is emulated
Hooked this up, verified from schematics. Does not apply to rollingc as demonstrated by the lack of initialization of that RAM by the program code.
This commit is contained in:
parent
6c7315b616
commit
ac354ae99a
@ -815,7 +815,7 @@ static ADDRESS_MAP_START( schaser_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x1fff) AM_ROM
|
||||
AM_RANGE(0x2000, 0x3fff) AM_RAM AM_BASE(&mw8080bw_ram) AM_SIZE(&mw8080bw_ram_size)
|
||||
AM_RANGE(0x4000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0xc000, 0xdfff) AM_MIRROR(0x00e0) AM_RAM AM_BASE(&c8080bw_colorram)
|
||||
AM_RANGE(0xc000, 0xdfff) AM_MIRROR(0x0060) AM_RAM AM_BASE(&c8080bw_colorram)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -1009,7 +1009,7 @@ static ADDRESS_MAP_START( sflush_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x801a, 0x801a) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x801c, 0x801c) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x801d, 0x801d) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xa000, 0xbfff) AM_MIRROR(0x00e0) AM_RAM AM_BASE(&c8080bw_colorram)
|
||||
AM_RANGE(0xa000, 0xbfff) AM_MIRROR(0x0060) AM_RAM AM_BASE(&c8080bw_colorram)
|
||||
AM_RANGE(0xd800, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -217,7 +217,7 @@ VIDEO_UPDATE( schaser )
|
||||
UINT8 x = offs << 3;
|
||||
|
||||
UINT8 data = mw8080bw_ram[offs];
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f1f] & 0x07;
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f9f] & 0x07;
|
||||
|
||||
if (!schaser_background_disable)
|
||||
{
|
||||
@ -252,7 +252,7 @@ VIDEO_UPDATE( schasrcv )
|
||||
UINT8 x = offs << 3;
|
||||
|
||||
UINT8 data = mw8080bw_ram[offs];
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f1f] & 0x07;
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f9f] & 0x07;
|
||||
|
||||
/* blue background */
|
||||
set_8_pixels(bitmap, y, x, data, pens, fore_color, 2);
|
||||
@ -316,7 +316,7 @@ VIDEO_UPDATE( polaris )
|
||||
bits 1 and 2 are marked 'not use' (sic) */
|
||||
|
||||
UINT8 back_color = (color_map_base[color_address] & 0x01) ? 6 : 2;
|
||||
UINT8 fore_color = ~c8080bw_colorram[offs & 0x1f1f] & 0x07;
|
||||
UINT8 fore_color = ~c8080bw_colorram[offs & 0x1f9f] & 0x07;
|
||||
|
||||
UINT8 cloud_y = y - polaris_get_cloud_pos();
|
||||
|
||||
@ -372,7 +372,7 @@ VIDEO_UPDATE( lupin3 )
|
||||
UINT8 x = offs << 3;
|
||||
|
||||
UINT8 data = mw8080bw_ram[offs];
|
||||
UINT8 fore_color = ~c8080bw_colorram[offs & 0x1f1f] & 0x07;
|
||||
UINT8 fore_color = ~c8080bw_colorram[offs & 0x1f9f] & 0x07;
|
||||
|
||||
set_8_pixels(bitmap, y, x, data, pens, fore_color, 0);
|
||||
}
|
||||
@ -483,7 +483,7 @@ VIDEO_UPDATE( sflush )
|
||||
UINT8 x = offs << 3;
|
||||
|
||||
UINT8 data = mw8080bw_ram[offs];
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f1f] & 0x07;
|
||||
UINT8 fore_color = c8080bw_colorram[offs & 0x1f9f] & 0x07;
|
||||
|
||||
set_8_pixels(bitmap, y, x, data, pens, fore_color, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user