摘要 |
PURPOSE: A method for managing a memory of a cellular phone is provided to separately manage assigned lists and return lists, and to write magic numbers in a data region, thereby checking errors during memory assignment and returns to recover the errors. CONSTITUTION: A cellular phone writes magic numbers in a data region, and makes assigned lists and return lists(SP1,SP2). The cellular phone checks the magic numbers of the assigned lists and the return lists, and if an error is not detected from the data region, the cellular phone performs memory assignment and returns(SP3). If the error is detected from the data region of the return lists or the assigned lists, the cellular phone recovers the data region by using prestored data region pointers and data size(SP4,SP5).
|