public static function opcode165(Core $core) { $core->registerA &= $core->registersHL & 0xff; $core->FZero = $core->registerA == 0; $core->FHalfCarry = true; $core->FSubtract = $core->FCarry = false; }