JPS636636A - Method for describing branching instruction of program - Google Patents

Method for describing branching instruction of program

Info

Publication number
JPS636636A
JPS636636A JP14976186A JP14976186A JPS636636A JP S636636 A JPS636636 A JP S636636A JP 14976186 A JP14976186 A JP 14976186A JP 14976186 A JP14976186 A JP 14976186A JP S636636 A JPS636636 A JP S636636A
Authority
JP
Japan
Prior art keywords
program
branch
instruction
branch instruction
label
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
JP14976186A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Jinno
善行 神野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP14976186A priority Critical patent/JPS636636A/en
Publication of JPS636636A publication Critical patent/JPS636636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To decrease the number of processes by using the same alphanumeric character string as a statement label to describe the branching instruction of a program. CONSTITUTION:A branch instruction 6 is described in the same alphanumeric character string as a label 5 on a list screen of a program shown on a CRT display. When the branching conditions 7 are satisfied after the program is executed up to the instruction 6, the program is branched according to the instruction 6.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータ等のプログラムの記述において
、プログラムの実行順序を制御する分岐命令の記述方法
に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method for writing a branch instruction for controlling the execution order of a program in writing a program for a computer or the like.

(従来の技術) 一般に、コンピュータのプログラムには分岐命令等を記
述して、プログラム実行の順序を変更することが頻繁に
生ずる。
(Prior Art) In general, branch instructions and the like are often written in computer programs to change the order of program execution.

第2図は、そのような従来のプログラムの分岐命令記述
の一例を、メモリICテスタ用プログラムのリスト画面
として略示するものである。
FIG. 2 schematically shows an example of the branch instruction description of such a conventional program as a list screen of a program for a memory IC tester.

第2図において1はステートメントを指すラベル、2は
分岐命令で、−例としてジャンプ命令が示されている。
In FIG. 2, 1 is a label pointing to a statement, 2 is a branch instruction, and a jump instruction is shown as an example.

3はその飛び越し先の表示、すなわち分岐先、4は分岐
条件を表している。
3 represents the jump destination, that is, the branch destination, and 4 represents the branch condition.

このようなステートメントで分岐条件4が成立するなら
ば、プログラムは分岐命令2、この例ではジャンプ命令
にしたがって分岐先3にジャンプし、以後、そのジャン
プ先のプログラムによってプログラムが実行される。
If branch condition 4 is satisfied with such a statement, the program jumps to branch destination 3 according to branch instruction 2, in this example a jump instruction, and thereafter the program is executed by the program at the jump destination.

すなわち、従来のような分岐命令の記載によっても、分
岐命令の記載がプログラム言語の文法に則り、かつ、当
然分岐の条件を満足しているならばプログラムとして分
岐を実行することは可能であった。
In other words, even with conventional branch instruction descriptions, it was possible to execute a branch as a program as long as the branch instruction description conformed to the grammar of the programming language and naturally satisfied the branch conditions. .

(発明が解決しようとする問題点) しかしながら、上記のような従来のプログラムの分岐命
令の記述方法では、分岐命令と分岐先と、および分岐条
件の3要件を記述する必要があり、そのためこの3つの
処理を別々に行なわなければならない欠点があった。
(Problem to be Solved by the Invention) However, in the conventional method of writing a branch instruction in a program as described above, it is necessary to write three requirements: a branch instruction, a branch destination, and a branch condition. The disadvantage was that two processes had to be performed separately.

本発明は上記した従来のプログラム記述の欠点を解決す
ることを目的として、分岐命令と分岐先とを同時に記述
処理可能な、プログラムの分岐命令の記述方法を提供す
るものである。
SUMMARY OF THE INVENTION The present invention aims to solve the above-mentioned drawbacks of conventional program descriptions, and provides a method for writing a branch instruction in a program that can simultaneously write and process a branch instruction and a branch destination.

(問題点を解決するための手段) 本発明は上記の目的を、ステートメントを指すラベルと
同じ英数字列(アルファベット、数字)からなる、コマ
ンドステートメントを記述することにより達成する。
(Means for Solving the Problems) The present invention achieves the above object by writing a command statement consisting of the same alphanumeric string (alphabet, number) as a label pointing to the statement.

(作 用) 上記本発明によれば、ラベルと同一の英数字列によって
1分岐命令および分岐先2つを表現するコマンドとして
処理することができ、分岐先として表現した分岐命令と
、分岐条件の2つを処理するのみでプログラムの分岐が
行なえる。
(Function) According to the present invention, it is possible to process a command that expresses one branch instruction and two branch destinations using the same alphanumeric string as a label, and the branch instruction expressed as a branch destination and the branch condition. A program can be branched by only processing two things.

(実施例) 以下、本発明を実施例により図面を用いて詳細に説明す
る。
(Example) Hereinafter, the present invention will be explained in detail by way of an example using the drawings.

第1図は本発明の一実施例を示すCRTデイスプレィ上
のプログラムのリスト画面の略示図で、5はラベル、6
は分岐先のラベルで表現した分岐命令、つまりラベルと
同じ英数字列により表現した分岐命令、7は分岐条件の
記述である。
FIG. 1 is a schematic diagram of a program list screen on a CRT display showing an embodiment of the present invention, where 5 is a label, 6 is a
is a branch instruction expressed by a branch destination label, that is, a branch instruction expressed by the same alphanumeric string as the label, and 7 is a description of a branch condition.

この記述で分岐命令6までプログラムが実行されると1
分岐条件7の条件が満たされるならば、プログラムは分
岐命令6にしたがって1分岐命令の記述で表わされるラ
ベルを有するステートメントにプログラムが分岐する。
With this description, when the program is executed up to branch instruction 6, 1
If branch condition 7 is satisfied, the program branches according to branch instruction 6 to a statement having a label represented by the description of one branch instruction.

本発明はこのように、プログラムの分岐命令と分岐条件
を処理するだけで1分岐命令が実行される簡易なプログ
ラム記述方法である。
As described above, the present invention is a simple program writing method in which one branch instruction is executed simply by processing the branch instruction and branch condition of the program.

(発明の効果) 以上説明して明らかなように本発明は、分岐先と分岐命
令を1つに記述することにより、処理数を低減したもの
であり、分岐命令の記述に必要な処理が簡易になる利点
がある。
(Effects of the Invention) As is clear from the above explanation, the present invention reduces the number of processes by writing a branch destination and a branch instruction in one, and the processing required to write a branch instruction is simplified. There are advantages to becoming

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例におけるメモリICテスタ用
プログラムの1分岐命令ステートメントのリスト画面の
略示図、第2図は従来のメモリICテスタ用プログラム
の、分岐命令ステートメントのリスト画面の略示図であ
る。 1.5・・・ラベル、 2・・・分岐命令、 3・・・
分岐先、 4,7・・・分岐条件、 6・・・(分岐先
を兼ねた)分岐命令。 特許出願人 松下電器産業株式会社 第 1 図 第2図
FIG. 1 is a schematic diagram of a list screen of one branch instruction statement of a program for a memory IC tester according to an embodiment of the present invention, and FIG. 2 is a schematic diagram of a list screen of branch instruction statements of a conventional program for a memory IC tester. It is an illustration. 1.5... Label, 2... Branch instruction, 3...
Branch destination, 4, 7... Branch condition, 6... Branch instruction (also serves as branch destination). Patent applicant: Matsushita Electric Industrial Co., Ltd. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] プログラムの分岐命令を、ステートメントラベルと同一
英数字列を使用して記述することを特徴とするプログラ
ムの分岐命令の記述方法。
A method for writing a program branch instruction, characterized in that the program branch instruction is written using the same alphanumeric string as a statement label.
JP14976186A 1986-06-27 1986-06-27 Method for describing branching instruction of program Pending JPS636636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14976186A JPS636636A (en) 1986-06-27 1986-06-27 Method for describing branching instruction of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14976186A JPS636636A (en) 1986-06-27 1986-06-27 Method for describing branching instruction of program

Publications (1)

Publication Number Publication Date
JPS636636A true JPS636636A (en) 1988-01-12

Family

ID=15482164

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14976186A Pending JPS636636A (en) 1986-06-27 1986-06-27 Method for describing branching instruction of program

Country Status (1)

Country Link
JP (1) JPS636636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10777821B2 (en) 2018-03-22 2020-09-15 Kabushiki Kaisha Toshiba Catalyst, anode, membrane electrode assembly, water electrolysis cell, stack, water electrolyzer, and hydrogen utilizing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10777821B2 (en) 2018-03-22 2020-09-15 Kabushiki Kaisha Toshiba Catalyst, anode, membrane electrode assembly, water electrolysis cell, stack, water electrolyzer, and hydrogen utilizing system

Similar Documents

Publication Publication Date Title
KR900001696B1 (en) Method for controlling image processing device
JPS636636A (en) Method for describing branching instruction of program
ATE225977T1 (en) AUTOMATIC LANGUAGE RECOGNITION
JPS62214443A (en) Emulation executing method
JPS63288357A (en) Data editing system
EP0827053A4 (en) Programming system for motion controller
JPS58158704A (en) Plc of time chart input system
JP2001255912A (en) Method for executing motion program
JPS6240538A (en) Data processor
JPS62175831A (en) Control system for pipeline with tag
JPS63318634A (en) Instruction prefetching system
JPS63189948A (en) Batch type debugging system in interactive debugger
JPS61208142A (en) Communication system between processes
JPS61213928A (en) Alteration system for program
JPS6279523A (en) Program executing result editing and output system
JPH0588876A (en) Display changing method for executing edition program
JPS62235641A (en) Control system for executing program
JPH02127736A (en) Control system for output of trace information
JPH04115347A (en) Automatic formation system for interactive program
JPH03266056A (en) Information processor
JPS63276186A (en) Character reader
AU3906799A (en) Analysing tool
JPH04322373A (en) Interactive wiring system
JPH0279125A (en) Method for processing interruption in basic interpreter language
JPS62209625A (en) Branch instruction processing system