0xD1 opcode partial implementation