本文整理汇总了C++中op_readpc函数的典型用法代码示例。如果您正苦于以下问题:C++ op_readpc函数的具体用法?C++ op_readpc怎么用?C++ op_readpc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_readpc函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: op_readpc
template<int i> void CPUcore::op_write_longr_w() {
aa.l = op_readpc();
aa.h = op_readpc();
aa.b = op_readpc();
op_writelong(aa.d + regs.r[i] + 0, regs.a.l);
L op_writelong(aa.d + regs.r[i] + 1, regs.a.h);
}
示例2: op_readpc
template<void (CPUcore::*op)()> void CPUcore::op_read_addrx_b() {
aa.l = op_readpc();
aa.h = op_readpc();
op_io_cond4(aa.w, aa.w + regs.x.w);
L rd.l = op_readdbr(aa.w + regs.x.w);
call(op);
}
示例3: op_readpc
template<int n> alwaysinline void SMP::op_mov_reg_addr() {
sp = op_readpc() << 0;
sp |= op_readpc() << 8;
regs.r[n] = op_readaddr(sp);
regs.p.n = (regs.r[n] & 0x80);
regs.p.z = (regs.r[n] == 0);
}
示例4: op_readpc
template<void (R65816::*op)()> void R65816::op_read_longx_b() {
aa.l = op_readpc();
aa.h = op_readpc();
aa.b = op_readpc();
L rd.l = op_readlong(aa.d + regs.x.w);
call(op);
}
示例5: op_readpc
void SMP::op_read_a_addrr() {
dp = op_readpc() << 0;
dp |= op_readpc() << 8;
op_io();
rd = op_readaddr(dp + regs.r[i]);
regs.a = (this->*op)(regs.a, rd);
}
示例6: op_readpc
void R65816::op_pea_e() {
aa.l = op_readpc();
aa.h = op_readpc();
op_writestackn(aa.h);
L op_writestackn(aa.l);
regs.s.h = 0x01;
}
示例7: op_readpc
void SMPcore::op_adjust_addr() {
dp = op_readpc() << 0;
dp |= op_readpc() << 8;
rd = op_readaddr(dp);
rd = (this->*op)(rd);
op_writeaddr(dp, rd);
}
示例8: op_readpc
void R65816::op_jmp_iaddr() {
aa.l = op_readpc();
aa.h = op_readpc();
rd.l = op_readaddr(aa.w + 0);
L rd.h = op_readaddr(aa.w + 1);
regs.pc.w = rd.w;
}
示例9: op_readpc
template<int i> void SMPcore::op_mov_addrr_a() {
dp = op_readpc() << 0;
dp |= op_readpc() << 8;
op_io();
dp += regs.r[i];
op_readaddr<false>(dp);
op_writeaddr(dp, regs.a);
}
示例10: op_readpc
template<int op> void SMPcore::op_or1_bit() {
dp = op_readpc() << 0;
dp |= op_readpc() << 8;
bit = dp >> 13;
dp &= 0x1fff;
rd = op_read(dp);
op_io();
regs.p.c = regs.p.c | ((bool)(rd & (1 << bit)) ^ op);
}
示例11: op_readpc
alwaysinline void SMP::op_jmp_iaddrx() {
dp = op_readpc() << 0;
dp |= op_readpc() << 8;
op_io();
dp += regs.x;
rd = op_readaddr(dp + 0) << 0;
rd |= op_readaddr(dp + 1) << 8;
regs.pc = rd;
}