// MVP - MoVe memory Positive
MoVe memory Positive
// MVP - MoVe memory Positive
func (cpu *CPU) op_mvp(info *stepInfo) {
	dst := cpu.nRead(cpu.RK, info.addr)
	src := cpu.nRead(cpu.RK, info.addr+1)
	cpu.RDBR = dst
	if cpu.X == 1 {
		cpu.nWrite(dst, uint16(cpu.RYl), cpu.nRead(src, uint16(cpu.RXl)))
		cpu.RYl--
		cpu.RXl--
	} else {
		cpu.nWrite(dst, cpu.RY, cpu.nRead(src, cpu.RX))
		cpu.RY--
		cpu.RX--
	}
	cpu.RA--
	cpu.RAl = uint8(cpu.RA &  0x00ff)
	cpu.RAh = uint8(cpu.RA >> 8)
	if cpu.RA != 0xffff {
		cpu.stepPC = 0
	}
}
func ( cpu * CPU ) op_mvp ( info * stepInfo ) { dst := cpu . nRead ( cpu . RK , info . addr ) src := cpu . nRead ( cpu . RK , info . addr + 1 ) cpu . RDBR = dst if cpu . X == 1 { cpu . nWrite ( dst , uint16 ( cpu . RYl ) , cpu . nRead ( src , uint16 ( cpu . RXl ) ) ) cpu . RYl -- cpu . RXl -- } else { cpu . nWrite ( dst , cpu . RY , cpu . nRead ( src , cpu . RX ) ) cpu . RY -- cpu . RX -- } cpu . RA -- cpu . RAl = uint8 ( cpu . RA & 0x00ff ) cpu . RAh = uint8 ( cpu . RA >> 8 ) if cpu . RA != 0xffff { cpu . stepPC = 0 } }
MoVe memory Positive
MoVe memory Positive