Previous 15994 Revisions Next

r3596 Wednesday 26th November, 2008 at 20:26:32 UTC by Miodrag Milanović
[RADIO86][MIKROSHA] Updated direct update handlers
[src/mess/drivers]mikrosha.c radio86.c

src/mess/drivers/radio86.c
r3595r3596
318318
319319static DIRECT_UPDATE_HANDLER( radio16_direct )
320320{   
321/*   if (address >= 0x4000 && address <=0x7FFF) {
321   if (address >= 0x4000 && address <=0x7FFF) {
322322         direct->mask = 0xffff;
323         direct->ram = radio16_io_mirror;
324         direct->rom = radio16_io_mirror;
325         direct->mem_min = 0x4000;
326         direct->mem_max = 0x7fff;
327         radio16_io_mirror[address] = cpu_get_reg(machine->cpu[0], I8080_STATUS);
328   } */
323         direct->raw = radio16_io_mirror;
324         direct->decrypted = radio16_io_mirror;
325         direct->min = 0x4000;
326         direct->max = 0x7fff;
327         radio16_io_mirror[address] = cpu_get_reg(space->machine->cpu[0], I8080_STATUS);
328   }
329329   return address;
330330}
331331
src/mess/drivers/mikrosha.c
r3595r3596
135135
136136static DIRECT_UPDATE_HANDLER( mikrosha_direct )
137137{     
138/*   if (address >= 0x8000 && address <=0xFFFF) {
139         opbase->mask = 0xffff;
140         opbase->ram = mikrosha_io_mirror;
141         opbase->rom = mikrosha_io_mirror;
142         opbase->mem_min = 0x8000;
143         opbase->mem_max = 0xffff;
144         mikrosha_io_mirror[address] = cpunum_get_reg(0, I8080_STATUS);
145   } */
138   if (address >= 0x8000 && address <=0xFFFF) {
139         direct->mask = 0xffff;
140         direct->raw = mikrosha_io_mirror;
141         direct->decrypted = mikrosha_io_mirror;
142         direct->min = 0x8000;
143         direct->max = 0xffff;
144         mikrosha_io_mirror[address] = cpu_get_reg(space->machine->cpu[0], I8080_STATUS);
145   }
146146   return address;
147147}
148148

Previous 15994 Revisions Next


© 1998-2018 The MESS Team