Skip to content

Commit a8ba1e0

Browse files
author
David Haywood
committed
help debugging issue
1 parent dcdc90e commit a8ba1e0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/mame/tvgames/xavix.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,19 @@ void xavix_state::xavix_1mb_extbus_map(address_map &map)
307307
map(0x000000, 0x0fffff).mirror(0x700000).rom().region("bios", 0x00000);
308308
}
309309

310+
void xavix_state::mainram_w(offs_t offset, uint8_t data)
311+
{
312+
m_mainram[offset] = data;
313+
314+
// trying to debug anpanmdx title screen issue
315+
// if ((offset == 0x3d) && (data == 0x77))
316+
// logerror("%s: writing 0x77 to 0x3d\n", machine().describe_context());
317+
}
318+
319+
310320
void xavix_state::xavix_lowbus_map(address_map &map)
311321
{
312-
map(0x0000, 0x3fff).ram().share("mainram");
322+
map(0x0000, 0x3fff).ram().w(FUNC(xavix_state::mainram_w)).share("mainram");
313323

314324
// Memory Emulator / Text Array
315325
map(0x4000, 0x4fff).rw(FUNC(xavix_state::xavix_memoryemu_txarray_r), FUNC(xavix_state::xavix_memoryemu_txarray_w));

src/mame/tvgames/xavix.h

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ class xavix_state : public driver_device
431431
void colmix_sh_w(offs_t offset, uint8_t data);
432432
void colmix_l_w(offs_t offset, uint8_t data);
433433
void spriteram_w(offs_t offset, uint8_t data);
434+
void mainram_w(offs_t offset, uint8_t data);
434435
bool m_sprite_xhigh_ignore_hack;
435436

436437
void tmap1_regs_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);

0 commit comments

Comments
 (0)