sound/k054539.cpp: Fix build

This commit is contained in:
AJR 2024-10-06 10:50:49 -04:00
parent 17d7b7cf3c
commit d1ae95982c

View File

@ -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;