From f00201f102dfb50574510c6f99de426078a0dc46 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Wed, 29 Jan 2014 17:27:10 +0000 Subject: [PATCH] (MESS) gbcolor: fixed heavy gfx regression caused by my conversion of the LCD to be a device. [Fabio Priuli] at some point I was convinced that this io2_r handler had to be moved inside the LCD emulation, then I realized I was wrong, but apparently I forgot to rectify the code in the driver. many thanks to Shideravan for reporting the issue. --- src/mess/drivers/gb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mess/drivers/gb.c b/src/mess/drivers/gb.c index 8a8b68f1610..95e0e3b9fcf 100644 --- a/src/mess/drivers/gb.c +++ b/src/mess/drivers/gb.c @@ -595,7 +595,7 @@ static ADDRESS_MAP_START(gbc_map, AS_PROGRAM, 8, gb_state ) AM_RANGE(0xff10, 0xff26) AM_DEVREADWRITE("custom", gameboy_sound_device, sound_r, sound_w) /* sound controller */ AM_RANGE(0xff27, 0xff2f) AM_NOP /* unused */ AM_RANGE(0xff30, 0xff3f) AM_DEVREADWRITE("custom", gameboy_sound_device, wave_r, wave_w) /* Wave RAM */ - AM_RANGE(0xff40, 0xff7f) AM_DEVREAD("lcd", cgb_lcd_device, video_r) AM_WRITE(gbc_io2_w) /* Other I/O and video controller */ + AM_RANGE(0xff40, 0xff7f) AM_READWRITE(gbc_io2_r, gbc_io2_w) /* Other I/O and video controller */ AM_RANGE(0xff80, 0xfffe) AM_RAM /* high RAM */ AM_RANGE(0xffff, 0xffff) AM_READWRITE(gb_ie_r, gb_ie_w) /* Interrupt enable register */ ADDRESS_MAP_END