diff --git a/src/devices/sound/k054539.cpp b/src/devices/sound/k054539.cpp index 126141c9a9c..b7108e925f8 100644 --- a/src/devices/sound/k054539.cpp +++ b/src/devices/sound/k054539.cpp @@ -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;