The KOSPI and Kosdaq indexes are displayed in the dealing room of Hana Bank in Seoul, Tuesday. The benchmark KOSPI closed at 6,856.83, up 0.73 percent from the previous session, while the secondary Kosdaq closed at 783.98, down 1.92 percent. Yonhap

The benchmark KOSPI staged a dramatic turnaround Tuesday, recovering from an intraday plunge of nearly 5 percent to close 0.73 percent higher as foreign and institutional investors bought battered semiconductor shares.

The secondary Kosdaq, however, fell to its lowest close of the year.

KOSPI ended at 6,856.83, according to the Korea Exchange. The index opened lower and briefly sank below 6,500 before bargain hunting erased its losses and pushed it back into positive territory.

Retail investors sold a net 4.15 trillion won ($2.8 billion) of shares, while foreign and institutional investors purchased a net 951 billion won and 3.23 trillion won, respectively.