摘要 |
<P>PROBLEM TO BE SOLVED: To provide a portable electronic device and an IC card for preventing an erroneous processing as a result of using of an incorrect instruction or data. <P>SOLUTION: In an IC card having an EEPROM; a CPU accessing the EEPROM; a ROM with an operation program for the CPU stored therein; an instruction buffer for storing an instruction; and a program counter, an instruction to be executed next to an instruction now specified by the counter is stored into the instruction buffer when the CPU executes the program stored in the ROM. When the counter proceeds to the next address, checks the instruction in the buffer with the instruction specified by the counter to allow the CPU to execute the instruction when both instructions coincide with each other. <P>COPYRIGHT: (C)2007,JPO&INPIT |