Function calling method and device as well as smart card

A technology of functions and interface functions, which is applied in the field of data information, can solve problems such as the inability to call data storage areas, and achieve the effect of saving storage space and expanding storage space

Inactive Publication Date: 2011-04-20
BEIJING WATCH DATA SYST
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, once an interface function is not stored in the COMMON area, the data stor...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Function calling method and device as well as smart card
  • Function calling method and device as well as smart card
  • Function calling method and device as well as smart card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] This embodiment provides a method for calling a function, the chip that executes the calling method includes at least two storage areas and a common area shared by the at least two storage areas, and the at least two storage areas share a logical address ; The following will be described by taking one of the storage areas as the data storage area of ​​the running program and the other storage area as the program storage area of ​​the stored program; the method is as follows: figure 2 As shown, it mainly includes:

[0033] Step 101, acquire the access parameter sent by the data storage area, and acquire the index number of the interface function corresponding to the access parameter according to the access parameter in an index table.

[0034] Wherein, the access parameter can be understood as a representative form of the interface function that the user wants to call, including the parameter information of the function to be called to determine the specific interface f...

Embodiment 2

[0040] This embodiment specifically combines a data storage area as a block located in the high 32K address segment, called BANK2, and the program storage area that shares the high 32K address segment with the data storage area is also a block, called BANK1, and the lower 32K The address segment is the memory in the COMMON area (refer to figure 1 As shown in the chip) structure as an example, a method of calling a function is introduced, such as image 3 As shown, the method includes the following steps:

[0041]Step 201, obtaining the access parameter sent by the data storage area, and obtaining the index number of the interface function corresponding to the access parameter according to the access parameter in the index table;

[0042] Wherein, the above-mentioned function list records the call address of the interface function correspondingly according to the index number of the interface function corresponding to the access parameter;

[0043] For example, a list BASE co...

Embodiment 3

[0090] The structure of the chip memory provided in the embodiment 2 is: described under the situation that the program storage area that shares the address segment with the BANK (ie BANK2) of the data storage area only includes one program block (ie only includes BANK1), this implementation The example will specifically combine the chip structure in which the program storage area includes at least two banks sharing one address segment as an example, and provide the method of calling the function. Such as Figure 7 As shown, in this chip, BANK3 and BANK1 are both program blocks in the program storage area, and BANK3, BANK1 and BANK2 in the data storage area share the upper 32K address segment, that is, address 0x8000-0xFFFF. The difference between the execution of this embodiment and Embodiment 2 is that it also includes the following process:

[0091] A. Obtain the identifier of the program storage area where the interface function corresponding to the access parameter is lo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a function calling method and device as well as a smart card, relating to the field of data information and solving the technical problem of limited storage space of an interface function. In the embodiment of the invention, a chip executing the calling method comprises at least two storage areas and a public area shared by the at least two storage areas, wherein, the at least two storage areas share a logical address. The calling method comprises the following steps: acquiring an access parameter sent by the first storage area, and acquiring the index number of the interface function corresponding to the access parameter in an index table of the public area according to the access parameter; executing a jump function so as to determine the calling address of the interface function corresponding to the access parameter in the second storage area according to the index number; calling the interface function according to the calling address; and after the calling of the interface function is completed, returning to the jump function so as to jump back to the first storage area. The embodiment of the invention is mainly applicable to a function calling scene.

Description

technical field [0001] The invention relates to the field of data information, in particular to a function calling method, a function calling device and a smart card. Background technique [0002] The memory structure is physically divided into program memory and data memory. With the continuous advancement of technology, the space of program storage area and data storage area is constantly expanding. Generally speaking, for 8-bit CPU chips, the maximum addressing space is only 64K. However, many memories have been expanded to more than 64K at present. Therefore, in order to deal with the addressing problem caused by the larger storage space, a chip that manages the storage block in blocks (BANK) has emerged. [0003] Such as figure 1 As shown, it is a chip that uses sub-BANK management and shares a high 32K chip. The chip program memory consists of a 64K program storage area (address space 0x0000H-0xFFFFH) and a 32K data storage area (0x8000H-0xFFFFH). Depend on figure...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/312
Inventor 张宁
Owner BEIJING WATCH DATA SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products