摘要 |
After registration of a subprogram is completed, a flag indicating that the subprogram has been registered is set. The flag is referred to in response to a subprogram registration request from an IC card reader/writer. Registration of the subprogram is performed only when the flag is not set. A BCC of the subprogram is calculated and stored in a memory upon subprogram registration. When the registered subprogram is to be executed, a BCC of the subprogram read out from the memory is calculated and compared with the BCC stored in the memory. The subprogram is executed only when the two BCCs coincide with each other. If the subprogram has been registered, a BCC check is performed for the registered subprogram. If the BCC check indicates an error, registration of the subprogram is enabled.
|