If you were sepretaly depreciating part of asset then it is better to make following entries
Cash(dr)
Acc. Depreciation (dr)
Loss (dr) (if dr side is less than credit side)
Part of asset (cr)
Profit (cr) if cr side is less than dr side.
Amount of loss or profit is difference of both side.