I really don't mean to be rude S.M.Serba., but I don't think you should be answering accounting student's questions. The last couple of responses I've read from you have been totally wrong.
First, a few days ago you told some student that impairment doesn't apply to capital assets, when clearly it does (FAS 144 "Accounting for the Disposal and Impairment of Long Lived Assets")
In this current response, you show a loss as a credit (when, obviously, if its a credit then its' a gain). Also, you incorrectly state that this is not a gain, but the recovery of an unrealized loss. Wrong again. It is a gain. Let's say this was the company's only transaction, and they closed out unrealized loss to retained earnings at the end of the year. In the next year, they sell the investment above book value (cost less allowance) and you seemingly would have this booked as a credit to loss instead of a gain. Assuming this is the only transaction for the period, the loss account (which should be zero or a debit balance) would have a credit balance.
Also, I'm not sure what country's GAAP you guys are following, but LCM is not the way to account for marketable equity securities under US GAAP. Per US GAAP, marketable equity securities should be measured at fair value, with the offset to earnings or equity (other comprehensive income), depending on whether the investment is classified as "trading" or "available for sale" (as defined in FAS 115). .