mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
sound/k054539.cpp: Fix build
This commit is contained in:
parent
17d7b7cf3c
commit
d1ae95982c
@ -482,7 +482,7 @@ u8 k054539_device::read(offs_t offset)
|
||||
case 0x22d:
|
||||
if(regs[0x22f] & 0x10) {
|
||||
offs_t const addr = (cur_ptr & 0x3fff) | ((cur_ptr & 0x10000) >> 2);
|
||||
uint8_t res = (rom_addr == 0x80) ? ram[ram_addr] : read_byte((0x20000*rom_addr) + cur_ptr);
|
||||
uint8_t res = (rom_addr == 0x80) ? ram[addr] : read_byte((0x20000*rom_addr) + cur_ptr);
|
||||
if(!machine().side_effects_disabled())
|
||||
cur_ptr = (cur_ptr + 1) & 0x1ffff;
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user