JPH06222914A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH06222914A
JPH06222914A JP1080193A JP1080193A JPH06222914A JP H06222914 A JPH06222914 A JP H06222914A JP 1080193 A JP1080193 A JP 1080193A JP 1080193 A JP1080193 A JP 1080193A JP H06222914 A JPH06222914 A JP H06222914A
Authority
JP
Japan
Prior art keywords
line
line number
key
program
copy
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
Application number
JP1080193A
Other languages
Japanese (ja)
Inventor
Yoshihiro Okuda
佳弘 奥田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP1080193A priority Critical patent/JPH06222914A/en
Publication of JPH06222914A publication Critical patent/JPH06222914A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily copy/move a program by automatically adding/changing a line number in the case of copying/moving one part of the program at an electronic equipment for inputting/executing the program which is provided with line numbers and performs processing in the order of those line numbers. CONSTITUTION:An automatic line number adding means 1a for automatically adding the line numbers of copied/moved destinations to the respective lines to be copied/moved in the case of copying/moving the program taking a line as the unit and an automatic line number changing means 1b for automatically changing the line numbers to respective lines, which line numbers are changed by the copy/movement, in the program are added to the electronic equipment for inputting/executing the program which is provided with the line numbers and performs the processing in the order of those line numbers.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ等の行番
号を有しかつその行番号順に処理を行うプログラムを入
力・実行できる電子機器に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device such as a computer having a line number and capable of inputting and executing a program for processing in the order of the line number.

【0002】[0002]

【従来の技術】図8は従来装置の要部構成図である。2. Description of the Related Art FIG. 8 is a schematic view of a main part of a conventional device.

【0003】81はCPU(中央処理装置)であり、キ
ーの読み込み、表示、プログラムのRAM84への書き
込み等の処理を行う。82はLCDで文字、数字等を表
示する為の表示部である。83はROMで、CPUが処
理を行う手順等の情報が記憶されている。
Reference numeral 81 denotes a CPU (Central Processing Unit), which performs processing such as reading keys, displaying, and writing programs in the RAM 84. Reference numeral 82 denotes a display unit for displaying characters, numbers, etc. on the LCD. Reference numeral 83 denotes a ROM, which stores information such as a procedure by which the CPU performs processing.

【0004】84はRAMであり、プログラムやCPU
81が処理する時に必要な情報が記憶されている。
Reference numeral 84 is a RAM, which is a program and a CPU.
Information necessary for processing by 81 is stored.

【0005】85はKEYで文字や数字等を入力する為
の入力部である。従来装置であれば行番号を有するプロ
グラムを複写する方法としては、複写したい行を編集し
行番号を変えて入力する事により、複写していた。ま
た、移動は複写を行った後に元の行を削除する事により
行っていた。
Reference numeral 85 is an input unit for inputting characters and numbers in KEY. In a conventional device, as a method of copying a program having a line number, the line to be copied is edited and the line number is changed and input is performed. Also, the move was performed by deleting the original line after copying.

【0006】複数行の複写,移動を行う場合は、以上の
操作を行数分繰り返す必要があった。
When copying or moving a plurality of lines, it is necessary to repeat the above operation for the number of lines.

【0007】更に、複写,移動先に行番号に空きが無い
場合、行番号を付け直すコマンド(BASIC言語の場
合は、RENUMコマンド)を実行し、十分な行番号の
空きを作る必要があった。
Furthermore, if there is no space in the line numbers at the copy and move destinations, it is necessary to execute a command for renumbering line numbers (RENUM command in the case of BASIC language) to make a sufficient space for line numbers. .

【0008】[0008]

【発明が解決しようとする課題】以上のように従来の方
法によれば、複数行を複写する場合、一行毎に編集を行
い行番号を変えて入力する必要がある。移動では、複写
を行った後に更に削除を行わなければならない。これら
の操作は非常に煩わしい作業であり、時間もかかる。
As described above, according to the conventional method, when copying a plurality of lines, it is necessary to edit each line and change the line number before inputting. In the move, the copy must be performed and then the deletion must be performed. These operations are very cumbersome and time-consuming.

【0009】また、複写,移動先の行番号に空きがある
必要があり、もし無ければ行番号を付けなおし空きの番
号を作る必要がある。例えば、行番号10と11の行の
間に5行分を複写,移動したければ、行番号11以降の
行を行番号16以降に付け替えた後に、複写,移動しな
ければならない。もし空きの番号を作らずに誤って複
写,移動を行うと、元々の行が削除され複写,移動した
行に書き換えられてしまう。
Further, it is necessary that the line numbers of the copy and move destinations have a space, and if there is no line number, the line numbers must be re-assigned to make a space number. For example, if five lines are to be copied and moved between the lines of line numbers 10 and 11, the lines after line number 11 must be replaced with the line numbers after 16 and then copied and moved. If you mistakenly copy or move without creating a blank number, the original line will be deleted and rewritten to the copied or moved line.

【0010】更に、GOTO,GOSUB(BASIC
言語の場合)等の処理の順番を変える命令を使用してい
るプログラムで、複写元,移動元に処理を移している場
合は、その箇所の行番号も変える必要があり(変更しな
ければ処理を移す先が無いことになる)、命令を探しだ
し変更するという非常に面倒な作業を行わなければなら
ない。
Furthermore, GOTO, GOSUB (BASIC
In the case of a program that uses an instruction that changes the order of processing (such as in the case of a language) and the processing is being transferred to the copy source or transfer source, the line number at that location must also be changed (if not changed, There will be no place to move), and you have to do the very tedious work of finding and changing the instructions.

【0011】又、行番号の付け替えるコマンド(BAS
IC言語では、RENUMコマンド)では、付け替える
際に複写、移動する為には“何番から後ろの行を何番か
らの行にするか”を考え実行する必要があった。
Also, a command (BAS) for changing line numbers
In the IC language, in the RENUM command), in order to copy and move when replacing, it was necessary to think and execute "from what number the line after the other should be changed".

【0012】[0012]

【課題を解決するための手段】本発明は上記課題の解決
を目的としてなされたものであり行番号を有し、該行番
号順に処理を行うプログラムを入力・実行できる電子機
器に於いて、プログラムの行単位での複写・移動に際
し、被複写・移動各行に対して複写・移動先での行番号
を自動的に付ける行番号自動付加手段と、上記複写・移
動により行番号が変わるプログラム中の各行に対して行
番号を自動的に変更する行番号自動変更手段とを有する
ことを特徴とする電子機器である。
SUMMARY OF THE INVENTION The present invention has been made for the purpose of solving the above-mentioned problems, and has a line number, and an electronic device capable of inputting and executing a program for processing in the order of the line number When copying or moving in line units of, the line number automatic adding means that automatically assigns the line number at the copy / moving destination to each line to be copied / moved, and the line number in the program that changes the line number by copying / moving An electronic device having a line number automatic changing means for automatically changing a line number for each line.

【0013】[0013]

【作用】上記構成により、本発明では、行番号を自動的
に付け直すので、一行毎に編集を行い行番号を付け直す
必要が無いので、複数の行を一回の操作で簡単にかつ短
時間に複写、移動できる。
With the above-described structure, in the present invention, the line numbers are automatically re-assigned, so there is no need to edit each line and re-assign the line numbers. Can be copied and moved on time.

【0014】また、行番号の空きが無い場合は、複写,
移動できるだけの空きエリアを作るので、誤ってプログ
ラムを書き換えることが無くなる。
If there is no space in the line number, copy,
It creates an empty area that can be moved, so you can avoid rewriting the program by mistake.

【0015】更に、複写元、移動元に処理の順番を移し
ている命令がある場合は、その箇所の行番号も自動的に
変更するので、面倒な作業をする必要が無くなる。
Further, if there is an instruction for shifting the processing order to the copy source or the move source, the line number at that location is automatically changed, so that it is not necessary to perform troublesome work.

【0016】[0016]

【実施例】以下図面に示した本発明の実施例に基づき詳
細を説明する。尚これらの実施例に本発明は限定される
ものでないことは勿論である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The details will be described below based on the embodiments of the present invention shown in the drawings. Needless to say, the present invention is not limited to these examples.

【0017】図1は本発明装置の要部構成図である。FIG. 1 is a block diagram of the essential parts of the device of the present invention.

【0018】1はCPU(中央処理装置)であり、キー
の読み込み、表示、プログラムのRAM84への書き込
み等の処理を行う。又プログラムの行単位の複写・移動
各行に対して複写・移動先での行番号を自動的に付ける
行番号自動付加手段1aと、上記複写・移動により行番
号が変わる行に対して、行番号を自動的に変更する行番
号自動変更手段1bとを統括制御する。2はLCDで文
字,数字等を表示する為の表示部である。3はROMで
CPUが処理を行う手順等の情報が記憶されている。4
はRAMであり、プログラムやCPU1が処理する時に
必要な情報が記憶されている。5はKEYで文字や数字
等を入力する為の入力部である。
Reference numeral 1 denotes a CPU (central processing unit), which performs processing such as reading keys, displaying, and writing programs in the RAM 84. In addition, line number automatic adding means 1a that automatically assigns a line number at the copy / move destination of each line of the program, and a line number for a line whose line number changes due to the above copy / move And the line number automatic changing means 1b for automatically changing Reference numeral 2 denotes a display unit for displaying characters, numbers, etc. on the LCD. Reference numeral 3 denotes a ROM in which information such as a procedure for the CPU to perform processing is stored. Four
Is a RAM, which stores programs and information necessary for processing by the CPU 1. Reference numeral 5 is an input unit for inputting characters and numbers in KEY.

【0019】図2は本発明装置の外観図である。2f
は、プログラム等が表示される表示装置(LCD)であ
る。2eは文字、数字等を入力するためのキーであり、
2aは複写機能を起動するためのCOPYキー、2bは
移動機能を起動するためのMOVEキー、2cは複写,
移動の領域指定などを行うためのカーソルキー、2dは
複写、移動の領域を確定する等を行うための[ENTE
R]キーである。
FIG. 2 is an external view of the device of the present invention. 2f
Is a display device (LCD) on which a program and the like are displayed. 2e is a key for inputting characters, numbers, etc.,
2a is a COPY key for activating the copy function, 2b is a MOVE key for activating the moving function, 2c is a copy key,
Cursor keys for designating the area of movement, 2d for copying, confirming the area of movement, etc.
R] key.

【0020】図3は本発明の実施例の説明図である。こ
こではプログラムの複写例を以下に示す。この例は、行
番号10と11の2行を行番号11と12の間に複写す
る場合である。COPYキーを押すと(a)の状態にな
り複写元の領域を指定できる。この状態でカーソルキー
と[ENTER]キーにより複写元の先頭行と最終行を
指定する。例ではまず行番号10の行にカーソルを移動
し[ENTER]キーを押す、次にカーソルキーで行番
号11の行にカーソルを移動し[ENTER]キーを押
す(b)。複写元の指定が終わると次に複写先の指定が
できる状態になる。この状態でカーソルキーと[ENT
ER]キーで複写先を指定する。例では行番号11と1
2の間に複写するので行番号12の行にカーソルを移動
し[ENTER]キーを押す(c)。(d)は、複写を
実行した後の状態である。複写前の行番号12が行番号
14に変わり、行番号12と13に複写されているのが
わかる。また、複写前の行番号11にあった“GOTO
10”の命令が行番号13に複写され“GOTO 1
2”に変わっているのもわかる。
FIG. 3 is an explanatory diagram of an embodiment of the present invention. Here is an example of copying a program. In this example, two lines of line numbers 10 and 11 are copied between line numbers 11 and 12. When the COPY key is pressed, the state of (a) is entered and the copy source area can be designated. In this state, the first line and the last line of the copy source are designated by the cursor key and the [ENTER] key. In the example, first, the cursor is moved to the line with the line number 10 and the [ENTER] key is pressed, and then the cursor is moved to the line with the line number 11 and the [ENTER] key is pressed (b). When the copy source is specified, the next copy destination can be specified. In this state, press the cursor keys and [ENT
Specify the copy destination with the [ER] key. In the example, line numbers 11 and 1
Since copying will be done between 2 and so, move the cursor to the line of line number 12 and press the [ENTER] key (c). (D) is a state after the copying is executed. It can be seen that the line number 12 before copying is changed to the line number 14 and the lines 12 and 13 are copied. Also, "GOTO" that was in line number 11 before copying
The command "10" is copied to line number 13 and "GOTO 1
You can see that it has changed to 2 ".

【0021】次に図4について説明する。図4も図3と
同様、本発明の実施例の説明図であり、ここではプログ
ラムの移動例を以下に示す。
Next, FIG. 4 will be described. Similar to FIG. 3, FIG. 4 is also an explanatory diagram of an embodiment of the present invention, and here, an example of moving a program is shown below.

【0022】この例は、行番号10と11の2行を行番
号13の前に移動する場合である。MOVEキーを押す
と(e)の状態になり移動元の領域を指定できる。この
状態でカーソルキーと[ENTER]キーにより移動元
の先頭行と最終行を指定する。例ではまず行番号10の
行にカーソルを移動し[ENTER]キーを押す、次に
カーソルキーで行番号11の行にカーソルを移動し[E
NTER]キーを押す(f)。移動元の指定が終わると
次に移動先の指定ができる状態になる。この状態でカー
ソルキーと[ENTER]キーで移動先を指定する。例
では行番号13の前に移動するので行番号13の行にカ
ーソルを移動し[ENTER]キーを押す(g)。
(h)は、移動を実行した後の状態である。移動前の行
番号13が行番号15に変わり、行番号13と14に移
動されているのがわかる。また、移動前の行番号11と
13にあった”GOTO 10”の命令が”GOTO
13”に変わっているのもわかる。
In this example, the two lines of line numbers 10 and 11 are moved to before line number 13. When the MOVE key is pressed, the state shown in (e) is entered, and the source area can be designated. In this state, the cursor key and the [ENTER] key are used to specify the start line and the end line of the movement source. In the example, first move the cursor to the line number 10 and press the [ENTER] key, then use the cursor key to move the cursor to the line number 11 and press [E].
Press the [NTER] key (f). After the move source is specified, the move destination can be specified next. In this state, the cursor key and [ENTER] key are used to specify the destination. In the example, the cursor moves to the line number 13, so the cursor is moved to the line number 13 and the [ENTER] key is pressed (g).
(H) is a state after the movement is executed. It can be seen that the line number 13 before the movement is changed to the line number 15 and the lines are moved to the line numbers 13 and 14. In addition, the command of "GOTO 10" in the line numbers 11 and 13 before the movement is "GOTO
You can see that it has changed to 13 ".

【0023】以上が本発明の実施例の説明である。The above is the description of the embodiments of the present invention.

【0024】次に図5、図6、図7に於いて各々、本発
明の動作を示すフローチャートについて説明する。
Next, a flow chart showing the operation of the present invention will be described with reference to FIGS. 5, 6 and 7, respectively.

【0025】図5はCOPYキーが押された後の複写処
理のフローチャートである。
FIG. 5 is a flowchart of the copying process after the COPY key is pressed.

【0026】S50では、複写元の先頭行をカーソルキ
ーと[ENTER]キーで指定し、その行の番号をRA
M上の領域STARTに格納する。
In S50, the first line of the copy source is designated by the cursor key and the [ENTER] key, and the line number is RA.
Store in the area START on M.

【0027】S51では、複写元の最終行をカーソルキ
ーと[ENTER]キーで指定し、その行の番号をRA
M上の領域LASTに格納する。STARTからLAS
Tの行を反転表示する。
In S51, the last line of the copy source is designated by the cursor key and the [ENTER] key, and the line number is RA.
Store in the area LAST on M. START to LAS
The T line is highlighted.

【0028】S52では、複写元をカーソルキーと[E
NTER]キーで指定し、その行の番号をRAM上の領
域TO_LINE_NEXT、1つ前の行の番号を T
O_LINEに格納する。
In step S52, the copy source is the cursor key and [E
[NTER] key, specify the line number in the area TO_LINE_NEXT on the RAM, and the previous line number T
Store in O_LINE.

【0029】S53では、複写元の行数を求める為に、
LAST−START+1を計算しLENGTH に格
納する。
In S53, in order to obtain the number of lines of the copy source,
Calculate LAST-START + 1 and store in LENGTH.

【0030】S54では、S52で指定した複写元にど
れだけの行番号の空きが有るかを求める為に、TO_L
INE_NEXT_TO_LINE−1 を計算しRA
M上の領域 AKI に格納する。
In step S54, TO_L is calculated in order to determine how many line numbers are available in the copy source specified in step S52.
INE_NEXT_TO_LINE-1 is calculated and RA
Store in area AKI on M.

【0031】S55では、S53で求めた複写元の行数
(LENGTH)とS54で求めた行番号の空き(AK
I)の比較を行い、LENGTH<=AKIの場合は、
複写可能と判断しS57の処理に移る。
In S55, the number of lines of the copy source (LENGTH) obtained in S53 and the empty line number obtained in S54 (AK
I) is compared, and if LENGTH <= AKI,
When it is determined that copying is possible, the process proceeds to S57.

【0032】LENGTH>AKIの場合は、複写でき
ないので、十分な空きの行番号を作る為にS56の処理
を行う。
If LENGTH> AKI, copying cannot be performed, so the process of S56 is performed to create a sufficiently empty line number.

【0033】S56では、LENGTH分の空きの行番
号を作る為に行番号を付け替える。具体的には、TO_
LINE_NEXT以降の全ての行の行番号に、LEN
GTH−AKIを加える。また、GOSUB,GOTO
等の飛び先がTO_LINE_NEXT以降の行番号で
あった場合は、同じようにその行番号にも加算する。
(BASIC言語のRENUMと同じ処理)更に、ST
ART,LASTがTO_LINE_NEXTよりも大
きな行番号で有った場合はSTART,LASTの補正
も行う。
In step S56, the line numbers are reassigned to create an empty line number for LENGTH. Specifically, TO_
The line numbers of all lines after LINE_NEXT are set to LEN.
Add GTH-AKI. Also, GOSUB, GOTO
When the jump destination such as "TO" is a line number after TO_LINE_NEXT, it is similarly added to the line number.
(Same processing as BASIC language RENUM)
If ART and LAST have a line number larger than TO_LINE_NEXT, START and LAST are also corrected.

【0034】最後にTO_LINE,TO_LINE_
NEXTの補正を行う。
Finally, TO_LINE and TO_LINE_
Perform NEXT correction.

【0035】S57では、複写元から複写先に複写す
る。その際に、行番号をTO_LINE+1から順に1
刻みで付け替えながら複写する。
In S57, the copy source is copied to the copy destination. At that time, the line numbers are sequentially incremented from TO_LINE + 1 by 1
Copy while changing the intervals.

【0036】S58では、複写された領域内(TO_L
INE+1からTO_LINE_NEXT−1)に複写
元(STARTからLASTの間)へ飛んでいるGOT
O,GOSUB等の命令があるかを調べる場合は、その
飛び先を複写された領域内に変更する。具体的には、飛
び先の行番号がSTARTから何番目かを計算し、その
値をTO_LINE+1に加えた行番号に付け替える。
In S58, the copied area (TO_L
GOT flying from INE + 1 to TO_LINE_NEXT-1) to the copy source (between START and LAST)
When checking whether there is an instruction such as O or GOSUB, the jump destination is changed to within the copied area. Specifically, the line number of the jump destination is calculated from START, and the value is replaced with the line number added to TO_LINE + 1.

【0037】図6はMOVEキーが押された後の移動処
理のフローチャートである。S60〜S66は、図5S
50〜S56の複写元、複写先が移動元、移動先に変わ
るだけで同じである。
FIG. 6 is a flowchart of the moving process after the MOVE key is pressed. S60 to S66 are shown in FIG. 5S.
It is the same except that the copy source and the copy destination in 50 to S56 are changed to the move source and the move destination.

【0038】S67では、図5S57と同じように複写
する。
In S67, a copy is made as in S57 of FIG.

【0039】S68では、プログラム全体で移動元(S
TARTからLAST)へ飛んでいるGOTO,GOS
UB等の命令があるかを調べある場合は、その飛び先を
移動先の領域内に変更する。具体的には、飛び先の行番
号がSTARTから何番目かを計算し、その値をTO_
LINE+1に加えた行番号に付け替える。
At S68, the source (S
GOTO, GOS flying from TART to LAST)
If there is an instruction such as UB, the jump destination is changed to the destination area. Specifically, the line number of the jump destination is calculated from START, and the value is calculated as TO_
Change to the line number added to LINE + 1.

【0040】S69では、移動元(STARTからLA
STで示される領域)を削除する。図7は複写(移動)
先頭行、最終行、及び複写(移動)先の行を指定処理を
行うルーチンのフローチャートである。
At S69, the source (from START to LA
The area indicated by ST) is deleted. Figure 7 is a copy (movement)
6 is a flowchart of a routine for performing a process of designating a first line, a last line, and a line to be copied (moved).

【0041】S70は、RAM上の領域LINEにプロ
グラムの先頭行の行番号を格納する。(初期化) S71は、キー待ちであり、キーが押されるまで待ち、
キーが押されたらS72の処理に移る。
In step S70, the line number of the first line of the program is stored in the area LINE on the RAM. (Initialization) S71 is waiting for a key, and waits until a key is pressed.
When the key is pressed, the process proceeds to S72.

【0042】S72では、押されたキーが上カーソルキ
ーであるかの判断を行い、上カーソルキーであればS7
6の処理に移る。違えばS73に移る。
In S72, it is determined whether or not the pressed key is the up cursor key, and if it is the up cursor key, S7
Go to step 6. If not, the process proceeds to S73.

【0043】S73では、キーが下カーソルキーである
かの判断を行い、そうであればS77の処理に移り、違
えばS74に移る。
In S73, it is determined whether the key is the down cursor key, and if so, the process proceeds to S77, and if not, the process proceeds to S74.

【0044】S74では、ENTERキーであるかの判
断を行い、そうであればS75の処理に移る。違えば、
S71に移りキーが押されるまで待つ。
In S74, it is determined whether the ENTER key is pressed, and if so, the process proceeds to S75. If different,
It moves to S71 and waits until the key is pressed.

【0045】S75は、ENTERキーが押された時の
処理であり、その時のLINEに格納されている行番号
が指定されたとしてその行番号を返し、処理を終わる。
Step S75 is a process when the ENTER key is pressed. If the line number stored in the LINE at that time is designated, the line number is returned and the process ends.

【0046】S76は、上カーソルキーの処理であり、
LINEに格納されている行番号の1つ前の行番号を求
めLINEに格納し直し、S78に移る。
S76 is processing of the up cursor key,
The line number immediately before the line number stored in LINE is obtained, the line number is stored again in LINE, and the process proceeds to S78.

【0047】S77は、下カーソルキーの処理であり、
LINEに格納されている行番号の次の行番号を求めL
INEに格納し直し、S78に移る。
At step S77, the down cursor key is processed.
Find the line number next to the line number stored in LINE
The data is stored again in INE, and the process proceeds to S78.

【0048】S78では、画面、カーソルを表示し、S
71に戻りキーが押されるのを待つ。行の指定処理で
は、ENTERキーが押されるまでS71からS78の
処理を繰り返す。
In S78, the screen and cursor are displayed, and S
Return to 71 and wait for the key to be pressed. In the line designation process, the processes of S71 to S78 are repeated until the ENTER key is pressed.

【0049】以上の説明で判るように、複写、移動共、
複写元(移動元)と複写先(移動先)を指定するという
一回の簡単な操作だけで複数行を任意の位置に複写(移
動)することができる。
As can be seen from the above explanation, both copying and moving,
Multiple lines can be copied (moved) to an arbitrary position by a single simple operation of designating a copy source (moving source) and a copy destination (moving destination).

【0050】また、複写(移動)前に、行番号に十分な
空きがあるかを調べ、無い場合は自動的に空きの行番号
を作るので、誤ってプログラムを書き換えるということ
が無くなる。
Further, before copying (moving), it is checked whether or not there is a sufficient space in the line number, and if there is no space, an empty line number is automatically created, so there is no need to erroneously rewrite the program.

【0051】更に、行番号を自動的に付け変えるので、
複写(移動)後に行番号を付け変えという面倒な操作を
行う必要が無くなる。
Furthermore, since the line numbers are automatically changed,
There is no need to perform the troublesome operation of changing the line numbers after copying (moving).

【0052】その他本発明は、上記しかつ図面に示した
実施例のみに限定されるものではなく、要旨を逸脱しな
い範囲内で適宜変形して、実施できることは勿論であ
る。
Others The present invention is not limited to the embodiments described above and shown in the drawings, and it is needless to say that the present invention can be appropriately modified and implemented without departing from the scope of the invention.

【0053】[0053]

【発明の効果】本発明では、行番号を自動的に付け直す
ので、一行毎に編集を行い行番号を付け直す必要が無い
ので、複数の行を一回の操作で、簡単に、かつ、短時間
に複写、移動できる。
According to the present invention, since the line numbers are automatically re-assigned, it is not necessary to edit each line and re-assign the line numbers. Therefore, a plurality of lines can be easily operated by one operation. You can copy and move in a short time.

【0054】また、行番号の空きが無い場合は、複写、
移動できるだけの空きエリアを作るので、誤ってプログ
ラムを書き換えることが無くなる。更に、複写元、移動
元に処理の順番を移している命令がある場合は、その箇
所の行番号も自動的に変更するので、面倒な作業をする
必要が無くなる。
If there is no space in the line number, copy,
It creates an empty area that can be moved, so you can avoid rewriting the program by mistake. Furthermore, if there is an instruction that shifts the processing order to the copy source or the move source, the line number at that location is also changed automatically, so there is no need for troublesome work.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明装置の要部構成図である。FIG. 1 is a configuration diagram of a main part of a device of the present invention.

【図2】本発明装置の外観図である。FIG. 2 is an external view of the device of the present invention.

【図3】本発明の実施例の説明図である。FIG. 3 is an explanatory diagram of an example of the present invention.

【図4】本発明の実施例の説明図である。FIG. 4 is an explanatory diagram of an example of the present invention.

【図5】本発明の動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation of the present invention.

【図6】本発明の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of the present invention.

【図7】本発明の動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the present invention.

【図8】従来装置の要部構成図である。FIG. 8 is a main part configuration diagram of a conventional device.

【符号の説明】[Explanation of symbols]

1 CPU(中央処理装置) 1a 行番号自動付加手段 1b 行番号自動変更手段 2 LCD 3 ROM(Read Only Memory) 4 RAM(Random Access Memor
y) 5 KEY 81 CPU(中央処理装置) 82 LCD 83 ROM(Read Only Memory) 84 RAM(Random Access Memo
ry) 85 KEY
1 CPU (Central Processing Unit) 1a Automatic Line Number Adding Unit 1b Automatic Line Number Changing Unit 2 LCD 3 ROM (Read Only Memory) 4 RAM (Random Access Memory)
y) 5 KEY 81 CPU (central processing unit) 82 LCD 83 ROM (Read Only Memory) 84 RAM (Random Access Memo)
ry) 85 KEY

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 行番号を有し、該行番号順に処理を行う
プログラムを入力・実行できる電子機器に於いて、プロ
グラムの行単位での複写・移動に際し、被複写・移動各
行に対して複写・移動先での行番号を自動的に付ける行
番号自動付加手段と、上記複写・移動により行番号が変
わるプログラム中の各行に対して行番号を自動的に変更
する行番号自動変更手段とを有することを特徴とする電
子機器。
1. An electronic device having a line number and capable of inputting / executing a program for processing in the order of the line number, when copying / moving the program line by line, copying each line to be copied / moved -Automatic line number adding means for automatically assigning line numbers at the move destination and automatic line number changing means for automatically changing the line number for each line in the program whose line number changes due to copying / moving An electronic device characterized by having.
JP1080193A 1993-01-26 1993-01-26 Electronic equipment Pending JPH06222914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1080193A JPH06222914A (en) 1993-01-26 1993-01-26 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1080193A JPH06222914A (en) 1993-01-26 1993-01-26 Electronic equipment

Publications (1)

Publication Number Publication Date
JPH06222914A true JPH06222914A (en) 1994-08-12

Family

ID=11760442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1080193A Pending JPH06222914A (en) 1993-01-26 1993-01-26 Electronic equipment

Country Status (1)

Country Link
JP (1) JPH06222914A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08272772A (en) * 1995-03-31 1996-10-18 Fujitsu Ltd Processing system for questionnaire document

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08272772A (en) * 1995-03-31 1996-10-18 Fujitsu Ltd Processing system for questionnaire document

Similar Documents

Publication Publication Date Title
US4905185A (en) Apparatus for transferring block data in original form and editing the block data
EP0461830B1 (en) Figure editing apparatus
JPH03266039A (en) Free format data link processing system
JP2686758B2 (en) Graphic editing device
JPH04195467A (en) Tree structure chart display system
JPH06222914A (en) Electronic equipment
JP3008257B2 (en) Command specification device
JP2538630B2 (en) Automatic test item selection system
KR100237659B1 (en) Figure editing apparatus and method for displaying edited objects in a form different from objects not yet edited
JPH05113818A (en) Numerical controller with multi-program function
JP2831816B2 (en) Display device for correspondence between design information
JP3083552B2 (en) Hierarchy editing processor
JPH04288593A (en) Image display device
JPH096981A (en) Drawing production and editing device
JPH03204722A (en) Specification review supporting method
JPH0365759A (en) Edition processing system for table
JPS59189471A (en) Wiring route searching system
JPH0736652A (en) Information display device
JPH05128182A (en) Plotter and plotting method utilizing plotter
JPH07104876B2 (en) Design support method and design support apparatus
JPH0644237A (en) Document shaping device
JP2795556B2 (en) Automatic correction method of circuit drawing
JPH0744446A (en) Relating method for grouped information
JPS63180130A (en) Conversation sequence editing device
JPH04149783A (en) Circuit diagram editor