src/emu/cpu/v60/op12.c
| r15238 | r15239 | |
| 753 | 753 | static UINT32 opLDPR(v60_state *cpustate) |
| 754 | 754 | { |
| 755 | 755 | F12DecodeOperands(cpustate, ReadAMAddress, 2,ReadAM, 2); |
| 756 | | if (cpustate->op2 >= 0 && cpustate->op2 <= 28) |
| 756 | if (cpustate->op2 <= 28) |
| 757 | 757 | { |
| 758 | 758 | if (cpustate->flag1 &&(!(OpRead8(cpustate, cpustate->PC + 1)&0x80 && OpRead8(cpustate, cpustate->PC + 2) == 0xf4 ) )) |
| 759 | 759 | cpustate->reg[cpustate->op2 + 36] = cpustate->reg[cpustate->op1]; |
| r15238 | r15239 | |
| 2096 | 2096 | static UINT32 opSTPR(v60_state *cpustate) |
| 2097 | 2097 | { |
| 2098 | 2098 | F12DecodeFirstOperand(cpustate, ReadAM, 2); |
| 2099 | | if (cpustate->op1 >= 0 && cpustate->op1 <= 28) |
| 2099 | if (cpustate->op1 <= 28) |
| 2100 | 2100 | cpustate->modwritevalw = cpustate->reg[cpustate->op1 + 36]; |
| 2101 | 2101 | else |
| 2102 | 2102 | { |
src/emu/machine/idectrl.c
| r15238 | r15239 | |
| 1746 | 1746 | offset *= 4; |
| 1747 | 1747 | size = convert_to_offset_and_size32(&offset, mem_mask); |
| 1748 | 1748 | |
| 1749 | | if (offset >= 0x000 && offset < 0x008) |
| 1749 | if (offset < 0x008) |
| 1750 | 1750 | res = ide_controller_read(device, 0, offset & 7, size); |
| 1751 | 1751 | if (offset >= 0x008 && offset < 0x010) |
| 1752 | 1752 | res = ide_controller_read(device, 1, offset & 7, size); |
| r15238 | r15239 | |
| 1763 | 1763 | size = convert_to_offset_and_size32(&offset, mem_mask); |
| 1764 | 1764 | data = data >> ((offset & 3) * 8); |
| 1765 | 1765 | |
| 1766 | | if (offset >= 0x000 && offset < 0x008) |
| 1766 | if (offset < 0x008) |
| 1767 | 1767 | ide_controller_write(device, 0, offset & 7, size, data); |
| 1768 | 1768 | if (offset >= 0x008 && offset < 0x010) |
| 1769 | 1769 | ide_controller_write(device, 1, offset & 7, size, data); |
src/mess/drivers/pc1512.c
| r15238 | r15239 | |
| 550 | 550 | offs_t addr = offset & 0x3ff; |
| 551 | 551 | bool decoded = false; |
| 552 | 552 | |
| 553 | | if (addr >= 0x000 && addr <= 0x00f) { data = i8237_r(m_dmac, offset & 0x0f); decoded = true; } |
| 553 | if ( addr <= 0x00f) { data = i8237_r(m_dmac, offset & 0x0f); decoded = true; } |
| 554 | 554 | else if (addr >= 0x020 && addr <= 0x021) { data = pic8259_r(m_pic, offset & 0x01); decoded = true; } |
| 555 | 555 | else if (addr >= 0x040 && addr <= 0x043) { data = pit8253_r(m_pit, offset & 0x03); decoded = true; } |
| 556 | 556 | else if (addr >= 0x060 && addr <= 0x06f) { data = system_r(space, offset & 0x0f); decoded = true; } |