Patent ID: 8756702

Claim:
An electronic apparatus comprising: an IC chip that performs processing operations in accordance with a given command transmitted from an external reader/writer, storing means for storing programs and data-structure information in association with a plurality of applications, each of the plurality of applications having data-structure information and more than one of the programs associated therewith, wherein: the programs describe respective processing sequences including at least a payment processing sequence, a charge processing sequence, and a balance checking processing sequence, each of the processing sequences comprising a corresponding plurality of processing operations to be sequentially performed, the processing operations included in the processing sequences described in the programs collectively include a processing operation to read data, a processing operation to write data, a processing operation to perform a calculation using data, and a processing operation to compare data, and the data-structure information indicates a structure of data to be read and written by individual processing operations; managing means for acquiring from the storing means a program that corresponds to the given command and is associated with an application of the plurality of applications that is identified by an identifier included in the given command, for acquiring the data-structure information that is associated with the application of the plurality of applications that is identified by the identifier included in the given command and for managing data to be read and written by the processing operations according to the processing sequence described in the acquired program as data having the structure represented by the information acquired from the storing means; and control means for performing, in response to the given command, each of the processing operations according to the processing sequence described in the program corresponding to the given command that was acquired from the storing means and controlling reading and writing of the data whose structure is represented by the information acquired from the storing means, wherein the performance of the processing operations according to the processing sequence described in the program corresponding to the given command depends on no commands transmitted from the external reader/writer other than the given command.