CN1503127A - Program coding method for extending program storage space and dynamic upgrading program - Google Patents
Program coding method for extending program storage space and dynamic upgrading program Download PDFInfo
- Publication number
- CN1503127A CN1503127A CNA021358249A CN02135824A CN1503127A CN 1503127 A CN1503127 A CN 1503127A CN A021358249 A CNA021358249 A CN A021358249A CN 02135824 A CN02135824 A CN 02135824A CN 1503127 A CN1503127 A CN 1503127A
- Authority
- CN
- China
- Prior art keywords
- code
- program
- statement
- chip microcomputer
- sta
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
This invention puts forward a new coding method in order to elevate programs for the fixed program single-chip procssor and expand its effect in which, the single-chip one can access a program code content segment stored in a storage zone for storing data to carry out the processor code segment till to finish the task corresponding to the code content segment stored in the storage zone when getting the processor code segment information needed to be carried out next step.
Description
Technical field
The present invention relates to a kind of external data of utilizing and handle, improve the program coding method of single-chip microcomputer internal operation performance, but be the program coding method of a kind of extender storage space and dynamic updating programe.
Background technology
Existing Single Chip Microcomputer (SCM) system, because the restriction of its port identity all defines program's memory space, in the more content of operation, the programmer has to seek an optimized solution, makes calling program can be limited to certain size; Single Chip Microcomputer (SCM) system is also arranged, but the port of extender internal memory is provided, but the size of its Extended RAM is still restricted.
This makes most Single Chip Microcomputer (SCM) system, only be fit to the simple working flow process, also making much needs on the device of Single Chip Microcomputer (SCM) system, need to install more than one Single Chip Microcomputer (SCM) system, to adapt to different solutions, so, the resource of having wasted single-chip microcomputer greatly, and need on a machine, debug many cover Single Chip Microcomputer (SCM) system.
And, different single-chip microcomputers, the language of use is also not the same, and each have their own standard in case use multiple Single Chip Microcomputer (SCM) system on a machine, has not only increased programmer's workload greatly, and can not guarantee the compatibility between each system.
Summary of the invention
The multiple standard of using at present Single Chip Microcomputer (SCM) system, the problem that is difficult to seek unity of action, also in order to expand the effective utilization of single-chip microcomputer, especially the single-chip microcomputer of program curing is carried out program upgrade, the present invention proposes a kind of novel program coding method and it is characterized in that:
Set some program code contents fragments on the number of address section of the memory block of the storage data in Single Chip Microcomputer (SCM) system, the start address positional information of the program segment that constitutes with the some machine codes of depositing in the Single Chip Microcomputer (SCM) program memory block of specific structure appointment in these program code contents fragments and interface data for these program segments energy operate as normal are provided with this single-chip microcomputer;
The described program code contents fragment that is stored in the memory block of storage data of single-chip microcomputer visit, when the information that obtains next step the machine code section that is stored in program storage area that must carry out, just carry out this machine code section, finish up to the described pairing task of program code contents fragment that is stored in the memory block of storage data.
A described complete routine code segment that is stored in the program code contents fragment of the memory block of storing data, at least the declaratives that comprise this section code, these declaratives are firsts of this section code, be placed on the beginning part of this section code, these declaratives comprise sign, length, and other information that need illustrate of this section code.
A described complete routine code segment that is stored in the program code contents fragment of the memory block of storing data comprises the entity part of this section code at least, this entity part is made up of statement code one by one, and each statement code is corresponding to a higher level lanquage statement of being explained with memonic symbols such as literal and symbols.An entity part comprises so a kind of statement code at least: the interface data that this statement code comprises the start address positional information of the program segment that one group of machine code by this single-chip microcomputer of depositing in the program storage area of single-chip microcomputer constitutes at least and can operate as normal provides for this program segment, single-chip microcomputer is carried out it after this statement code of visit obtains the start address of this program segment that is made of machine code, if and some fragment of this statement code is when being treated as machine language code, single-chip microcomputer is carried out the function that these machine language codes can not realize that this statement code will be finished.An entity part comprises so a kind of statement code at least: this statement code comprises the information that one group of data is used to indicate next step other statement code that will move at least; And if these group data are when just representing the sequence number of statement code sequencing, the complete contents of program code segment of this section that has then comprised this entity part also comprises a statement index part at least; This statement index part has comprised the start position information of some special sentence codes of this entity part at least, does not carry out the next statement code that is close in proper order and next step statement code of palpus execution after some statement code that these special statement codes are these entity part executes.
According to the program code that the present invention worked out, because can deposit in the memory block of the storage data that single-chip microcomputer can read, break through the program code of single-chip microcomputer in the past and must be placed on restriction in the addressable program storage area of this single-chip microcomputer, thereby realized the purpose in single-chip microcomputer extender space.For needing dynamic updating programe or to the Single Chip Microcomputer (SCM) system of the single-chip microcomputer ROMPaq of having solidified, no matter whether this single-chip microcomputer has the external program expanded function, by selecting suitable external memory storage, this single-chip microcomputer is by input, output port or universal serial bus or other external interface, interface requirement by this external memory storage links to each other with this external memory storage, the realization machine code section of some basic functions that current application program is required is put into the program of curing, and preestablishes the condition that has ROMPaq in this external memory storage in the curing code of this external memory storage of visit.When the needs ROMPaq, to put into this external memory storage according to the program code that is used for upgrading that the present invention worked out, and this external memory storage is encased in this Single Chip Microcomputer (SCM) system, can realize dynamic updating programe like this and to the purpose of the single-chip microcomputer ROMPaq of having solidified.Since deposit in the memory block of storage data of Single Chip Microcomputer (SCM) system according to the content of the program code segments that the present invention worked out can be not because of the variation of single-chip microcomputer kind changes, thereby can realize the purpose that same program code moves on different types of single-chip microcomputer platform.
Description of drawings
The single-chip microcomputer storage inside structural representation of Fig. 1-embodiment 1
Among the figure, the inner 64 kilobyte program read-only memories of 1-
The inner 1,936 thousand joint growth data storeies of 2-
The operation result of Fig. 2-embodiment 1
The single-chip microcomputer of Fig. 3-embodiment 2 and the connection diagram of exented memory
The operation result of Fig. 4-embodiment 2
Specific embodiment
Embodiment 1:
Present embodiment is an example with the HMC83753 mcu programming of HMC company, and a kind of 8 coding methods on the single-chip microcomputer that are used in are provided.
As shown in Figure 1, the HMC83753 single-chip microcomputer has the internal processes ROM (read-only memory) of 64 kilobyte and the internal data ROM (read-only memory) of 1936 kilobyte, program code according to the present invention's establishment can place the internal data ROM (read-only memory), can realize the program space is expanded to from 64 kilobyte the purpose of 2000 kilobyte.
A higher level lanquage statement is as follows:
Displaycin 00 00 is " go up and combine " 201ah move 42 " width of cloth " 201ah
Nextline " gold " 201ah move 60h " hundred million "
Nextline " height " 201ah move 42 " " code 1ah yesterday
Nextline " low " 201ah move 42 " the present " code lah;
Be placed on the program code that utilizes this coding method establishment in the internal extended data-carrier store:
DB?
00H,02H, 00H,39H,?
02H,13H,00H
The row total length program address of higher level lanquage statement
DB?
00H, 00H, 0DH,66H,?
12H,96H,?
20H,1AH
The initial row of initial row liquid crystal display of liquid crystal display number show " on " demonstration " combines " demonstration ": "
DB 90H,2AH,
06H,F4H, 20H,1AH,?
91H,00H
The 2AH length that moves to right shows " width of cloth " demonstration ": " line feed
DB?
09H,1FH,?
20H,1AH, 90H,60H,?
10H,BFH
Show " gold " demonstrations ": " the 60H demonstration " hundred million " that moves to right
DB?
91H,00H,?
07H,38H, 20H,1AH,?
90H,2AH
Line feed shows " height " demonstration ": " 2AH that moves to right
DB?
12H,ADH,?
20H,1AH,
91H,00H,?
06H,0CH
Show that " yesterday " demonstration ": " line feed shows " low "
DB?
20H,1AH,?
90H,2AH, 09H,20H,?
20H,1AH
Show that ": " line feed shows " the present " demonstration ": "
DB?
FFH
The expression display routine finishes
Put into following assembly routine among the inner read-only program memory address 001302H:
gm_start_tpp?equ?80h
gm_start_tph?equ?81h
gm_start_tpl?equ?82h
gm_tpp?equ?83h
gm_tph?equ?84h
gm_tpl?equ?85h
gm_up?equ?86h
gm_down?equ?87h
gm_pp?equ?88h
gm_dp?equ?89h
gm_fb_pp?equ?8ah
gm_fb_dp?equ?8bh
gm_spp?equ?8ch
gm_sdp?equ?8dh
gm_page?equ?8eh
gm_row?equ?8fh
gm_mode?equ?90h
gm_judge?equ?91h
gm_emptyl?equ?92h
gm_empty2?equ?93h
gm_empty3?equ?94h
gm_shift?equ?95h
mode:
1da0?M60h
sta0?M12h
lda0?M61h
;lda?#70h
sta0?M11h
1da0?M62h
sta0?M10h
lda?#00h
sta?r_pp
call?keyscan
sta0?M90h
lda?#00h
sta?r_pp
call?keyscan
sta0?M8ah
lda?#00h
sta?r_pp
call?keyscan
sta0?M8bh
lda0?M8ah
sta?r_pp
lda0?M8bh
sta?r_dp
lda?i
anda?#0cfh
sta?i
lda0?M90h
cmpe?#01h
brz?gml
cmpe?#02h
brz?gm2
cmpe?#03h
brz?gm3
br?gm_erro
gm_over:
lda0?M8ah
sta?r_pp
lda0?M8bh
sta?r_dp
lda?i
ora?#10h
sta?i
ret
gm_erro:
lda0?M8ah
sta?r_pp
lda0?M8bh
sta?r_dp
lda?i
ora?#20h
sta?i
ret
gm_exit:
ret
gml:
lda?#00h
sta0?M8ch
lda?#0a0h
sta0?M8dh
lda?#00h
sta?r_pp
call?keyscan
adda?#0b0h
sta0?M8eh
lda?#00h
sta?r_pp
call?keyscan
sta0?M8fh
lda0?M12h
sta0?M80h
lda0?M11h
sta0?M81h
lda0?M10h
sta0?M82h
lda0?M8ch
sta?r_pp
lda0?M8dh
sta?r_dp
lda0?M8eh
sta?i
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda0?M8fh
sta?i
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda0?M12h
sta?i
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda0?M11h
sta?i
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda0?M10h
sta?i
lda0?M8dh
inca
sta0?M8dh
lda?#11h
sta0?M87h
sta0?M86h
lda?#00h
sta?r_pp
call?gm1_disp
lda0?M91h
cmpe?#00h
brz?gm1_one
cmpe?#02h
brz?gm_erro
lda?#00h
sta0?M87h
lda?#00h
sta?r_pp
lda?#0bh
sta?M21h
lda?#0b7h
sta?M26h
lda?#18h
sta?M27h
lda?#00h
sta?M28h
lda?#00h
sta?r_pp
call?disp_keyl
gml_one:
lda?#00h
sta?r_pp
sta?M21h
gml_1:lda?M21h
cmpe?#00h
brz?gml_1
cmpe?#69h
brnz?gml_2
br?gm_exit
gml_2:cmpe?#0bh
brnz?gml_3
lda0?M87h
cmpe?#11h
brz?gml_4
lda?#00h
sta?r_pp
call?clear
lda?#11h
sta0?M87h
sta0?M86h
lda0?M8dh
suba?#05h
sta0?M8dh
lda0?M8ch
sta?r_pp
lda0?M8dh
sta?r_dp
lda?i
sta0?M8eh
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M8fh
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M12h
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M11h
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M10h
lda0?M8dh
inca
sta0?M8dh
call?gml_disp
lda?#00h
sta0?M86h
lda?#00h
sta?r_pp
lda?#0dh
sta?M21h
lda?#0b0h
sta?M26h
lda?#18h
sta?M27h
lda?#00h
sta?M28h
lda?#00h
sta?r_pp
call?disp_keyl
lda0?M91h
cmpe?#00h
brz?gml_4
cmpe?#02h
brz?gm_erro
lda?#00h
sta0?M87h
lda?#00h
sta?r_pp
lda?#0bh
sta?M21h
lda?#0b7h
sta?M26h
lda?#18h
sta?M27h
lda?#00h
sta?M28h
lda?#00h
sta?r_pp
call?disp_keyl
br?gm1_4
gml_3:cmpe?#0dh
brnz?gml_4
lda0?M86h
cmpe?#11h
brz?gml_4
lda?#00h
sta?r_pp
call?clear
lda?#11h
sta0?M87h
sta0?M86h
lda0?M8dh
suba?#0fh
sta0?M8dh
lda0?M8ch
sta?r_pp
lda0?M8dh
sta?r_dp
lda?i
sta0?M8eh
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M8fh
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M12h
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M11h
lda0?M8dh
inca
sta0?M8dh
sta?r_dp
lda?i
sta0?M10h
lda0?M8dh
inca
sta0?M8dh
lda?#00h
sta?r_pp
lda0?M12h
cmpe?M80h
brnz?gm1_31
lda0?M11h
cmpe?M81h
brnz?gm1_31
lda0?M10h
cmpe?M82h
brnz?gml_31
br?gml_32
gml_31:1da?#00h
sta0?M86h
lda?#00h
sta?r_pp
lda?#0dh
sta?M21h
lda?#0b0h
sta?M26h
lda?#18h
sta?M27h
lda?#00h
sta?M28h
lda?#00h
sta?r_pp
call?disp_keyl
gml_32:call?gml_disp
lda?#00h
sta0?M87h
lda?#00h
sta?r_pp
lda?#0bh
sta?M2lh
lda?#0b7h
sta?M26h
lda?#18h
sta?M27h
lda?#00h
sta?M28h
lda?#00h
sta?r_pp
call?disp_keyl
lda0?M91h
cmpe?#01h
brnz?gm_erro
gml_4:lda?#00h
sta?M21h
br?gml_1
gm2:
lda?#00h
sta?r_pp
call?keyscan
adda?#0b0h
sta0?M8eh
lda?#00h
sta?r_pp
call?keyscan
sta0?M8fh
lda?#00h
sta?r_pp
call?gm_h_disp
lda0?M91h
cmpe?#00h
brz?gm_exit
cmpe?#01h
brz?gm_over
br?gm_erro
gm3:lda?#00h
sta?r_pp
call?keyscan
adda?#0b0h
sta0?M8eh
lda?#00h
sta?r_pp
call?keyscan
sta0?M8fh
lda?#00h
sta?r_pp
call?keyscan
cmpe?#01h
brz?gm3_high
cmpe?#02h
brz?gm3_low
cmpe?#03h
brz?gm3_dp
br?gm_erro
gm3_high:
lda?#00h
sta?r_pp
call?keyscan
sta0?M92h
lda?#00h
sta?r_pp
call?keyscan
sta0?M93h
lda?#00h
sta?r_pp
call?keyscan
sta0?M94h
lda0?M92h
sta0?M12h
lda0?M93h
sta0?M11h
lda0?M94h
sta0?M10h
call?gm_h_disp
lda0?M91h
cmpe?#00h
brz?gm_exit
cmpe?#01h
brz?gm_over
br?gm_erro
gm3_low:lda?#00h
sta?r_pp
call?keyscan
lda?#00h
sta0?M92h
lda?#00h
sta?r_pp
call?keyscan
sta0?M93h
lda?#00h
sta?r_pp
call?keyscan
sta0?M94h
lda0?M92h
sta0?M12h
lda0?M93h
sta0?M11h
lda0?M94h
sta0?M10h
call?gml_disp
lda0?M91h
cmpe?#00h
brz?gm_exit
cmpe?#01h
brz?gm_over
br?gm_erro
gm3_dp:lda?#00h
sta?r_pp
call?keyscan
lda?#00h
sta?r_pp
call?keyscan
sta0?M93h
lda?#00h
sta?r_pp
call?keyscan
sta0?M94h
lda0?M93h
sta0?M88h
lda0?M94h
sta0?M89h
br?gm_ram_disp
Last display result as shown in Figure 2.
Embodiment 2:
Present embodiment is an example with the MPD784216 single-chip microcomputer of NEC Corporation, and a kind of 16 coding methods on the single-chip microcomputer that operate in are provided.
As shown in Figure 3, after having only μ 784216 chips of the NEC Corporation of 1000 kilobyte external program expanded functions to touch curing as salting down, with be distributed in being connected of outside FLASH type external memory storage in the printed board in advance, this FLASH type external memory storage has 2000 kilobytes of memory, when the needs ROMPaq, program code according to the present invention's establishment is put in the FLASH storer of this outside, can realize the ROMPaq of maximum 2000 kilobyte.
Among Fig. 3, μ 784216 pin of chip functions are as follows:
PIN48 to PIN55 corresponding A 0 is to A7
PIN56 to PIN63 corresponding A D0 to AD7
PIN64 to PIN71 corresponding A 8 is to A15
PIN73 to PIN76 corresponding A 16 is to A19
The corresponding RD of PIN77 to PIN79, WR, WAIT
A higher level lanquage statement is as follows:
Displaycin (3,1) is " wait computer data " 00d1h 00d2h;
Be placed on the program code that utilizes this coding method establishment of the FLASH type storer of 2000 outside kilobyte:
DB?
02h,00H,
25H,00H,?
78H,05H,00H,
20H,0FDH,0FH,
17H,
Higher level lanquage statement line total length program address interface data address date total length
DB?
40H,0FEH,0FH,
03H,
01H,
07h,06H,
Number demonstration of the initial row of the initial row liquid crystal display of program run situation feedback addresses liquid crystal display " etc. "
DB?
0DEH,05H,?
26H,06H,
95H,0BH,
0F2H,0DH 6AH,09H,
Demonstration " treating " demonstration " " demonstration " brain " demonstration " number " demonstration " according to "
DB?
0D1H,00H,?
0D2H,00H,?
0FFh,0FFH
It is as follows to show that "-" shows that "-" expression display routine finishes to put into assembly routine among the inner read-only program memory address 000578H:
Assembly listing:
Row row address code source program
1 1 NAME axsn
2 2
3 3 public?axsz
4 4 extrn?lcd_lin,lcd_vol,key_code,disp_code
5 5 extrn?disp_one,disp_key
6 6 extrn inter1,inter4,inter5,inter6,inter7,lcd_volmax,lcd_linmax
7 7 (000FFD80) axsdz equ 0ffd80h
8 8 ------ CSEG
9 9
10 10?000000 axsz:
11 11?000000 49 push?psw
12 12?000001 05AA sel?rb2
13 13?000003?B900 mov a,#00h
14 14?000005?R3C07B000 mov [%inter1],a
15 15?000009?R38DB000000 movg tde,#inter7
16 16?00000E?R38BB000000 movg uup,#inter6
17 17?000013?R3C6F0001 cmp inter4,#01h
18 18?000017?8330 bc $axs_err
19 19?000019?R3C6F0000 cmp inter4,#lcd_linmax
20 20?00001D?8302 bc $axs_8
21 21?00001F?8028 bnz $axs_err
22 22?000021 axs_8:
23 23?000021?R3C6F0001 cmp inter5,#01h
24 24?000025?8322 bc $axs_err
25 25?000027?R3C6F0000 cmp inter5,#lcd_volmax
26 26?00002B?8302 bc $axs_6
27 27?00002D?801A bnz $axs_err
28 28?00002F axs_6:
29 29?00002F?R3C6F00FF cmp inter7,#0ffh
30 30?000033?8120 bz $axs_ret
31 31?000035?R3C6F0020 cmp inter7,#20h
32 32?000039?8335 bc $axs_1
33 33?00003B?811A bz $axs_2
34 34?00003D?R3C6F0090 cmp inter7,#90h
35 35?000041?8117 bz $axs_3
36 36?000043?R3C6F0091 cmp inter7,#91h
37 37?000047?8117 bz $axs_4
38 38?000049 axs_err:
39 39?000049?R38F900 movg whl,inter1
40 40?00004C?3D8F set1 [whl],7
41 41?00004E?1405 br $axs_ret
42 42?000050 axs_err2:
43 43?000050?R38F900 movg whl,inter1
44 44?000053?3D8D set1 [whl],5
45 45?000055 axs_ret:
46 46?000055?48 pop?psw
47 47?000056?56 ret
48 48?000057 axs_2:
49 49?000057?436200 br $!axs_2a
50 50?00005A axs_3:
51 51?00005A?R2A380000 add inter5,inter6
52 52?00005E?143D br $axs_9
53 53?000060 axs?4:
54 54?000060?R3C6F0000 cmp inter6,#00h
55 55?000064?81EA bz $axs_err2
56 56?000066?R2A300000 mov inter5,inter6
57 57?00006A?R3C680002 add inter4,#02h
58 58?00006E?142D br $axs_9
59 59?000070 axs_1:
60 60?000070?RB900 mov a,#lcd_volmax
61 61?000072?R7A1100 sub a,inter5
62 62?000075?8304 bc $axs_al
63 63?000077?AF0F cmp a,#0fh
64 64?000079?8208 bnc $axs_5
65 65?00007B axs_al:
66 66?00007B?R3C3A0001 mov inter5,#01h
67 67?00007F?R3C680002 add inter4,#02h
68 68?000083 axs_5:
69 69?000083?R3C6F0000 cmp inter4,#1cd_linmax
70 70?000087?8265 bnc $axs_err1
71 71?000089?R2A300000 mov lcd_lin,inter4
72 72?00008D?R2A300000 mov lcd_vol,inter5
73 73?000091?R2AB00000 movw disp?code,inter6
74 74?000095?R09F00000 call !!disp_one
75 75?000099?R3C680010 add inter5,#10h
76 76?00009D axs_9:
77 77?00009D?78DB020000 addg tde,#02h
78 78?0000A2?78BB020000 addg uup,#02h
79 79?0000A7?38DC80 movg axsdz,tde
80 80?0000AA?073080 mov a,[%axsdz]
81 81?0000AD?R381500 mov inter7,a
82 82?0000B0?38BC80 movg axsdz,uup
83 83?0000B3?073080 mov a,[%axsdz]
84 84?0000B6?R381500 mov inter6,a
85 85?0000B9?4373FF br $!axs_6
86 86?0000BC axs_2a:
87 87?0000BC?RB900 mov a,#lcd_volmax
88 88?0000BE?R7A1100 sub a,inter5
89 89?0000C1?8304 bc $axs_a2
90 90?0000C3?AF05 cmp a,#05h
91 91?0000C5?8208 bnc $axs_7
92 92?0000C7 axs_a2:
93 93?0000C7?R3C3A0001 mov inter5,#01h
94 94?0000CB?R3C680002 add inter4,#02h
95 95?0000CF axs_7:
96 96?0000CF?R3C6F0000 cmp inter4,#lcd_linmax
97 97?0000D3 8219 bnc $axs_err1
98 98?0000D5?R2A300000 mov lcd_lin,inter4
99 99?0000D9?R3C2600 inc lcd_lin
100 100?0000DC?R2A300000 mov lcd_vol,inter5
101 101?0000E0?R2A300000 mov key_code,inter6
102 102?0000E4?R09F00000 call !!disp_key
103 103?0000E8?R3C680005 add inter5,#05h
104 104?0000EC?14AF br $axs_9
105 105?0000EE axs_errl:
106 106?0000EE?R38F900 movg whl,interl
107 107?0000F1?3D8E setl [whl].6
108 108?0000F3?435FFF br $!axs_ret
109 109 ;----------------
110 110 END
Status information:
Target?chip:uPD784216
Device?file:V1.11
Assembly?complete,0?error(s)and?0?warning(s)found.(0)
Last liquid crystal display as shown in Figure 4.
Claims (7)
1, the program coding method of a kind of extender storage space and dynamic updating programe is characterized in that:
Set some program code contents fragments on the number of address section of the memory block of the storage data in Single Chip Microcomputer (SCM) system, the start address positional information of the program segment that constitutes with the some machine codes of depositing in the Single Chip Microcomputer (SCM) program memory block of specific structure appointment in the described program code contents fragment and interface data for these program segments energy operate as normal are provided with this single-chip microcomputer;
The described program code contents fragment that is stored in the memory block of storage data of single-chip microcomputer visit, when the information that obtains next step the machine code section that is stored in program storage area that must carry out, just carry out this machine code section, finish up to the described pairing task of program code contents fragment that is stored in the memory block of storage data.
2, the program coding method of a kind of extender storage space as claimed in claim 1 and dynamic updating programe is characterized in that:
The described program code contents fragment that is stored in the memory block of storage data, at least the declaratives that comprise this section code, these declaratives are firsts of this section code, be placed on the beginning part of this section code, these declaratives comprise sign, length, and other information that need illustrate of this section code;
The described program code contents fragment that is stored in the memory block of storage data, at least the entity part that comprises this section code, this entity part is made up of statement code one by one, and each statement code is corresponding to a higher level lanquage statement of being explained with memonic symbols such as literal and symbols.
3, the entity part of program code contents fragment as claimed in claim 2 is characterized in that:
An entity part comprises so a kind of statement code at least: the interface data that this statement code comprises the start address positional information of the program segment that one group of machine code by this single-chip microcomputer of depositing in the program storage area of single-chip microcomputer constitutes at least and can operate as normal provides for this program segment, single-chip microcomputer are carried out it obtain the start address of this program segment that is made of machine code at this statement code of visit after.
4, the entity part of program code contents fragment as claimed in claim 2 is characterized in that:
An entity part comprises so a kind of statement code at least: this statement code comprises the information that one group of data is used to indicate next step other statement code that will move at least.
5, the entity part of program code contents fragment as claimed in claim 3 is characterized in that:
If when described some fragment that comprises the statement code of start address positional information and interface data was treated as machine language code, single-chip microcomputer was carried out the function that these machine language codes can not realize that this statement code will be finished.
6, the entity part of program code contents fragment as claimed in claim 4 is characterized in that:
If when the described data that comprise the information that is used to indicate next step other statement code that will move were just represented the sequence number of statement code sequencing, the complete contents of program code segment of this section that has then comprised this entity part also comprised a statement index part at least.
7, the entity part of program code contents fragment as claimed in claim 6 is characterized in that:
Described statement index part has comprised the start position information of some special sentence codes of this entity part at least, does not carry out the next statement code that is close in proper order and next step statement code of palpus execution after some statement code that these special statement codes are these entity part executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021358249A CN1503127A (en) | 2002-11-20 | 2002-11-20 | Program coding method for extending program storage space and dynamic upgrading program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021358249A CN1503127A (en) | 2002-11-20 | 2002-11-20 | Program coding method for extending program storage space and dynamic upgrading program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1503127A true CN1503127A (en) | 2004-06-09 |
Family
ID=34231521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA021358249A Pending CN1503127A (en) | 2002-11-20 | 2002-11-20 | Program coding method for extending program storage space and dynamic upgrading program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1503127A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100368995C (en) * | 2006-01-17 | 2008-02-13 | 华为技术有限公司 | Upgrading device and method in operation for monolithic processor system |
CN101706788A (en) * | 2009-11-25 | 2010-05-12 | 惠州Tcl移动通信有限公司 | Cross-area access method for embedded file system |
-
2002
- 2002-11-20 CN CNA021358249A patent/CN1503127A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100368995C (en) * | 2006-01-17 | 2008-02-13 | 华为技术有限公司 | Upgrading device and method in operation for monolithic processor system |
CN101706788A (en) * | 2009-11-25 | 2010-05-12 | 惠州Tcl移动通信有限公司 | Cross-area access method for embedded file system |
CN101706788B (en) * | 2009-11-25 | 2012-11-14 | 惠州Tcl移动通信有限公司 | Cross-area access method for embedded file system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1875345A (en) | Extensible type system for representing and checking consistency of program components during the process of compilation | |
CN1975495A (en) | Imaging lens | |
CN101030138A (en) | Application framework | |
CN1584824A (en) | Microprocessor frame based on CISC structure and instruction realizing style | |
CN1155884C (en) | An optimization device that eliminates transmission commands through the analysis of a wide range of equivalence relationships | |
CN1311423C (en) | System and method for performing speech recognition by utilizing a multi-language dictionary | |
CN101040306A (en) | Pseudo random number generation device | |
CN1761996A (en) | System and method for speech recognition utilizing a merged dictionary | |
CN1577266A (en) | Program converting method, program and storage medium | |
CN1296825C (en) | Simulator and simulation method | |
CN1763712A (en) | Method for dynamical determination of actions to perform on a selected item in a web portal GUI environment | |
CN1940939A (en) | Information management device, information management system, and computer usable medium | |
CN1784498A (en) | Genomic profiling of regulatory factor binding sites | |
CN1776621A (en) | Program Transformation Method | |
CN1503127A (en) | Program coding method for extending program storage space and dynamic upgrading program | |
CN100336668C (en) | Printing system, apparatus and method, printing requesting device and managing device and program | |
CN1219383C (en) | A method of encoding and decoding for remote authentication dial-up protocol for user services | |
CN1254110C (en) | Image processing method and its processor | |
CN101059729A (en) | Ten-stroke initial-tail stroke number input method | |
CN1529846A (en) | Navigation in computer software applications developed in procedural languages | |
CN1315030C (en) | Ten-stroke structure numerical code input method | |
CN1313898C (en) | Method for protecting software using so-called conditional jump principle against its unauthorised use | |
CN1655634A (en) | Information-display voice apparatus for mobile devices and method of realizing the same | |
CN200943582Y (en) | Screw compressor rotor | |
CN2869389Y (en) | Screw compressor rotor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |