mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
Fix hyperstone drc (nw)
This commit is contained in:
parent
b3ae5e6a7f
commit
1af6bdd952
@ -1133,16 +1133,18 @@ void hyperstone_device::init(int scale_mask)
|
||||
{
|
||||
auto cache = m_program->cache<2, 0, ENDIANNESS_BIG>();
|
||||
m_pr16 = [cache](offs_t address) -> u16 { return cache->read_word(address); };
|
||||
if (ENDIANNESS_NATIVE != ENDIANNESS_LITTLE)
|
||||
if (ENDIANNESS_NATIVE != ENDIANNESS_BIG)
|
||||
m_prptr = [cache](offs_t address) -> const void * {
|
||||
const u16 *ptr = static_cast<u16 *>(cache->read_ptr(address & ~3));
|
||||
ptr += (~address >> 1) & 3;
|
||||
if(!(address & 2))
|
||||
ptr++;
|
||||
return ptr;
|
||||
};
|
||||
else
|
||||
m_prptr = [cache](offs_t address) -> const void * {
|
||||
const u16 *ptr = static_cast<u16 *>(cache->read_ptr(address & ~3));
|
||||
ptr += (address >> 1) & 3;
|
||||
if(address & 2)
|
||||
ptr++;
|
||||
return ptr;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user