mirror of
https://github.com/holub/mame
synced 2025-10-06 00:54:22 +03:00
Fixed: 03622: solomon, solomonj: Graphics Bugs
This commit is contained in:
parent
22c5856130
commit
4935467518
@ -67,6 +67,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0xe603, 0xe603) AM_READ(solomon_0xe603_r)
|
AM_RANGE(0xe603, 0xe603) AM_READ(solomon_0xe603_r)
|
||||||
AM_RANGE(0xe604, 0xe604) AM_READ_PORT("DSW1")
|
AM_RANGE(0xe604, 0xe604) AM_READ_PORT("DSW1")
|
||||||
AM_RANGE(0xe605, 0xe605) AM_READ_PORT("DSW2")
|
AM_RANGE(0xe605, 0xe605) AM_READ_PORT("DSW2")
|
||||||
|
AM_RANGE(0xe606, 0xe606) AM_READNOP /* watchdog? */
|
||||||
AM_RANGE(0xe600, 0xe600) AM_WRITE(interrupt_enable_w)
|
AM_RANGE(0xe600, 0xe600) AM_WRITE(interrupt_enable_w)
|
||||||
AM_RANGE(0xe604, 0xe604) AM_WRITE(solomon_flipscreen_w)
|
AM_RANGE(0xe604, 0xe604) AM_WRITE(solomon_flipscreen_w)
|
||||||
AM_RANGE(0xe800, 0xe800) AM_WRITE(solomon_sh_command_w)
|
AM_RANGE(0xe800, 0xe800) AM_WRITE(solomon_sh_command_w)
|
||||||
|
@ -9,7 +9,7 @@ static tilemap_t *bg_tilemap, *fg_tilemap;
|
|||||||
|
|
||||||
WRITE8_HANDLER( solomon_videoram_w )
|
WRITE8_HANDLER( solomon_videoram_w )
|
||||||
{
|
{
|
||||||
solomon_colorram[offset] = data;
|
solomon_videoram[offset] = data;
|
||||||
tilemap_mark_tile_dirty(fg_tilemap, offset);
|
tilemap_mark_tile_dirty(fg_tilemap, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ static TILE_GET_INFO( get_bg_tile_info )
|
|||||||
static TILE_GET_INFO( get_fg_tile_info )
|
static TILE_GET_INFO( get_fg_tile_info )
|
||||||
{
|
{
|
||||||
int attr = solomon_colorram[tile_index];
|
int attr = solomon_colorram[tile_index];
|
||||||
int code = solomon_colorram[tile_index] + 256 * (attr & 0x07);
|
int code = solomon_videoram[tile_index] + 256 * (attr & 0x07);
|
||||||
int color = (attr & 0x70) >> 4;
|
int color = (attr & 0x70) >> 4;
|
||||||
|
|
||||||
SET_TILE_INFO(0, code, color, 0);
|
SET_TILE_INFO(0, code, color, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user