Skip to content

Commit

Permalink
I believe we should mask here on external bus access
Browse files Browse the repository at this point in the history
  • Loading branch information
David Haywood committed Dec 13, 2024
1 parent 6169926 commit 64613bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/devices/cpu/m6502/xavix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ inline uint8_t xavix_device::read_full_data(uint8_t databank, uint16_t adr)
}
else
{
return m_extbus_space->read_byte((databank << 16) | adr);
return m_extbus_space->read_byte(((databank << 16) | adr) & 0x7fffff);
}
}
else
{
return m_extbus_space->read_byte((databank << 16) | adr);
return m_extbus_space->read_byte(((databank << 16) | adr) & 0x7fffff);
}
}

Expand Down Expand Up @@ -257,12 +257,12 @@ inline void xavix_device::write_full_data(uint8_t databank, uint16_t adr, uint8_
}
else
{
m_extbus_space->write_byte((databank << 16) | adr, val);
m_extbus_space->write_byte(((databank << 16) | adr) & 0x7fffff, val);
}
}
else
{
m_extbus_space->write_byte((databank << 16) | adr, val);
m_extbus_space->write_byte(((databank << 16) | adr) & 0x7fffff, val);
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/mame/tvgames/xavix_2002.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,9 @@ DEVICE_IMAGE_LOAD_MEMBER(xavix2002_super_tv_pc_state::cart_load)
void xavix2002_super_tv_pc_state::xavix_extbus_map(address_map &map)
{
map(0x000000, 0x7fffff).rom().region("bios", 0x00000).mirror(0x800000);
map(0xe00000, 0xe7ffff).ram(); // writes here
map(0x600000, 0x67ffff).ram(); // writes here
}


void xavix2002_super_tv_pc_state::xavix2002_super_tv_pc(machine_config& config)
{
xavix2002(config);
Expand Down

0 comments on commit 64613bb

Please sign in to comment.