INLINE UINT16 FETCH16(hc11_state *cpustate) { UINT16 w; w = (memory_decrypted_read_byte(cpustate->program, cpustate->pc) << 8) | (memory_decrypted_read_byte(cpustate->program, cpustate->pc+1)); cpustate->pc += 2; return w; }
INLINE UINT8 ROP(i8008_state *cpustate) { UINT8 retVal = memory_decrypted_read_byte(cpustate->program, GET_PC.w.l); GET_PC.w.l = (GET_PC.w.l + 1) & 0x3fff; cpustate->PC = GET_PC; return retVal; }
INLINE UINT8 FETCH(hc11_state *cpustate) { return memory_decrypted_read_byte(cpustate->program, cpustate->pc++); }
INLINE UINT16 h8_readop16(h83xx_state *h8, offs_t address) { UINT16 result = memory_decrypted_read_byte(h8->program, address)<<8; return result | memory_decrypted_read_byte(h8->program, address+1); }
INLINE UINT8 READ_ROM(i4004_state *cpustate) { return memory_decrypted_read_byte(cpustate->program, (GET_PC.w.l & 0x0f00) | cpustate->R[0]); }
OP(illegal,2) { logerror("Z180 '%s' ill. opcode $ed $%02x\n", cpustate->device->tag, memory_decrypted_read_byte(cpustate->program, (cpustate->_PCD-1)&0xffff)); } /********************************************************** * special opcodes (ED prefix) **********************************************************/ OP(ed,00) { unsigned n = ARG(cpustate); /* IN0 B,(n) */ cpustate->_B = IN(cpustate, n ); } OP(ed,01) { unsigned n = ARG(cpustate); /* OUT0 (n),B */ OUT(cpustate, n, cpustate->_B ); } OP(ed,02) { illegal_2(cpustate); /* DB ED */ } OP(ed,03) { illegal_2(cpustate); /* DB ED */ } OP(ed,04) { TST( cpustate->_B ); /* TST B */ } OP(ed,05) { illegal_2(cpustate); /* DB ED */ } OP(ed,06) { illegal_2(cpustate); /* DB ED */
INLINE int m4510_cpu_readop(m4510_Regs *cpustate) { register UINT16 t=cpustate->pc.w.l++; return memory_decrypted_read_byte(cpustate->space, M4510_MEM(t)); }