Patent ID: 7403957

Claim:
An image forming apparatus for forming an image in accordance with control codes, said image forming apparatus comprising: a printing unit for printing an image; a code memory for storing control codes, which are adapted to control the image forming apparatus having said printing unit; a processor for controlling the image forming apparatus in accordance with the control codes stored in said code memory, for controlling transfer of new control codes from an external apparatus and for controlling rewriting of the control codes, which have been stored in said code memory, with the new control codes; and a rewrite execution code memory for storing rewrite execution codes, which are adapted to control rewriting of the control codes, which have been stored in said code memory, wherein if rewriting of the control codes, which have been stored in said code memory, has not been normally ended, said processor leaves information indicating that the rewriting has not been normally ended, wherein if the information indicating that the rewriting has not been normally ended is left and the rewrite execution codes corresponding to the new control codes are not stored in said rewrite execution code memory, said processor controls transfer of the rewrite execution codes from the external apparatus and controls rewriting of the control codes, which have been stored in said code memory, with the new control codes in accordance with the rewrite execution codes, which are transferred from the external apparatus after the information is left, and wherein if the information indicating that the rewriting has not been normally ended is left and the rewrite execution codes corresponding to the new control codes are stored in said rewrite execution code memory, said processor controls rewriting of the control codes, which have been stored in said code memory, with the new control codes in accordance with the rewrite execution codes, which are stored in said rewrite execution code memory before the information is left.