Skip to content

Commit

Permalink
help debugging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Haywood committed Dec 26, 2024
1 parent dcdc90e commit a8ba1e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/mame/tvgames/xavix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,19 @@ void xavix_state::xavix_1mb_extbus_map(address_map &map)
map(0x000000, 0x0fffff).mirror(0x700000).rom().region("bios", 0x00000);
}

void xavix_state::mainram_w(offs_t offset, uint8_t data)
{
m_mainram[offset] = data;

// trying to debug anpanmdx title screen issue
// if ((offset == 0x3d) && (data == 0x77))
// logerror("%s: writing 0x77 to 0x3d\n", machine().describe_context());
}


void xavix_state::xavix_lowbus_map(address_map &map)
{
map(0x0000, 0x3fff).ram().share("mainram");
map(0x0000, 0x3fff).ram().w(FUNC(xavix_state::mainram_w)).share("mainram");

// Memory Emulator / Text Array
map(0x4000, 0x4fff).rw(FUNC(xavix_state::xavix_memoryemu_txarray_r), FUNC(xavix_state::xavix_memoryemu_txarray_w));
Expand Down
1 change: 1 addition & 0 deletions src/mame/tvgames/xavix.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ class xavix_state : public driver_device
void colmix_sh_w(offs_t offset, uint8_t data);
void colmix_l_w(offs_t offset, uint8_t data);
void spriteram_w(offs_t offset, uint8_t data);
void mainram_w(offs_t offset, uint8_t data);
bool m_sprite_xhigh_ignore_hack;

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

0 comments on commit a8ba1e0

Please sign in to comment.