implemented some cp opcodes