JPS62247422A - Automatic recognizing system for loading device of program store medium - Google Patents

Automatic recognizing system for loading device of program store medium

Info

Publication number
JPS62247422A
JPS62247422A JP9089286A JP9089286A JPS62247422A JP S62247422 A JPS62247422 A JP S62247422A JP 9089286 A JP9089286 A JP 9089286A JP 9089286 A JP9089286 A JP 9089286A JP S62247422 A JPS62247422 A JP S62247422A
Authority
JP
Japan
Prior art keywords
program
device number
temporary
storage medium
stored
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
JP9089286A
Other languages
Japanese (ja)
Inventor
Kazunobu Ando
安藤 一伸
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9089286A priority Critical patent/JPS62247422A/en
Publication of JPS62247422A publication Critical patent/JPS62247422A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable a user to load a program store medium to an optional device with no instruction of a device number nor correction of a program, by providing a tentative device number setting means, a tentative device number store area and a device number recognizing means. CONSTITUTION:This system comprises a tentative device number setting means 1, a tentative device number store area 2, a device number recognizing means 3 and an identifier 4. If a program store medium 5 is loaded to a floppy disk device of #10, the identifier 4 is detected out of the floppy disk device when the tentative device number is updated between 0 and 10 and set at 10. Thus it is recognized that the floppy disk device of #10 is defined as a device to load the medium 5. Thus a loading request is given to the floppy disk device of #10 for a program B52.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム格納媒体装着装置の自動認識方式に
関し、特に計算機システムにおいであるプログラムから
他のプログラムを呼び出して主記憶にロードする際のプ
ログラム格納媒体装着装置の自動認識方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an automatic recognition method for a program storage medium loading device, and in particular to a program used when calling a program from another program and loading it into the main memory in a computer system. The present invention relates to an automatic recognition method for a storage medium mounting device.

〔従来の技術〕[Conventional technology]

従来、主記憶にロードされたプログラムから外部記憶媒
体上にある次に実行すべきプログラムのロードを要求す
る場合には、そのプログラムが格納された媒体が装着さ
れた装置番号を外部から指示するかプログラムで指定さ
れた装置に該当するプログラムが格納された媒体を装着
するがのいずれかの方式をとっていた。
Conventionally, when requesting loading of the next program to be executed on an external storage medium from a program loaded in main memory, it is necessary to specify from the outside the device number in which the medium in which the program is stored is installed. One of two methods was used: the medium containing the corresponding program was loaded into the device specified by the program.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のプログラムロード方式では、ロードする
プログラムを格納するα体が防着されTいる装置番号が
プログラムからは認識することができないので、指定外
の装置に装着されたプログラム格納媒体からプログラム
をロードする場合には利用者による指示を与えるかある
いはプログラムを修正するかしなければならないという
欠点がある。
In the conventional program loading method described above, the alpha body that stores the program to be loaded is protected and the device number cannot be recognized from the program. The disadvantage of loading is that the user must give instructions or modify the program.

本発明の目的は、上述の点に鑑み、利用者による指示や
プログラムの修正を行うことなしにロードされるプログ
ラムを格納する媒体が装着された装置を自動的に認識す
るプログラム格納媒体装着装置の自動認識方式を提供す
ることにある。
In view of the above-mentioned points, an object of the present invention is to provide a program storage medium mounting device that automatically recognizes a device in which a medium storing a program to be loaded is mounted without requiring instructions or modification of the program by the user. The objective is to provide an automatic recognition method.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のプログラム格納媒体装着装置の自動認識方式は
、プログラムから他のプログラムが呼び出されたときに
起動され前記他のプログラムが格納されているプログラ
ム格納媒体が装着されている装置番号を認識するために
使用される板装置番号を設定する仮装置番号設定手段と
、この仮装置番号設定手段により設定された前記板装置
番号が格納される仮装置番号格納領域と、この仮装置番
号格納領域に格納されている板装置番号の装置に装着さ
れている媒体に対して前記他のプログラムが格納されて
いるプログラム格納媒体であることを示す識別子の読取
りを行い前記識別子が検出されたときに前記板装置番号
が実際に前記プログラム格納媒体が装着されている装置
番号であることを認識し前記識別子が検出されないとき
に前記仮装置番号設定手段に前記板装置番号の更新を要
求する装置番号認識手段とを有する。
The automatic recognition method of the program storage medium loading device of the present invention is activated when another program is called from a program and recognizes the device number in which the program storage medium in which the other program is stored is loaded. a temporary device number setting means for setting a board device number used for the temporary device number setting means; a temporary device number storage area in which the board device number set by the temporary device number setting device is stored; An identifier indicating that the medium installed in the device having the board device number is read as a program storage medium in which the other program is stored, and when the identifier is detected, the board device device number recognition means for recognizing that the number is a device number in which the program storage medium is actually installed and requesting the temporary device number setting means to update the board device number when the identifier is not detected; has.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る0本実施例のプログラム格納媒体装着装置の自動認識
方式は、仮装置番号設定手段1、仮装置番号格納領域2
、装置番号認識手段3および識別子4から構成されてい
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. The automatic recognition system of the program storage medium loading device of this embodiment includes a temporary device number setting means 1, a temporary device number storage area 2
, device number recognition means 3 and an identifier 4.

第2図は、複数のプログラムが格納されたプログラム格
納媒体5 (例えばフロピーディスク)の内容を示す図
であり、このプログラム格納媒体5にはプログラムA5
1、プログラムB52および識別子4(例えば、ユニー
クなファイル名をもつファイル)が格納されている0例
えば、プログラムA51は初期ロードされるプログラム
であり、プログラムB52はプログラムA51から内部
呼出しされるプログラムである。
FIG. 2 is a diagram showing the contents of a program storage medium 5 (for example, a floppy disk) in which a plurality of programs are stored.
1. Program B52 and identifier 4 (for example, a file with a unique file name) are stored.0 For example, program A51 is a program that is initially loaded, and program B52 is a program that is internally called from program A51. .

プログラムA51は、機械語やアセンブラ以外のインタ
プリタ(BASIC等)やコンパイラ(COBOL、F
ORTRAN等)等の高級言語で記述されたプログラム
であり、どの装置に装着されたプログラム格納媒体5か
らロードされたのかを自プログラム内で知ることはでき
ない。
Program A51 uses an interpreter other than machine language or assembler (such as BASIC) or compiler (COBOL, F
The program is written in a high-level language such as ORTRAN, etc.), and it is not possible to know from within the program itself which device the program storage medium 5 is loaded from.

次に、このように構成された本実施例のプログラム格納
媒体装着装置の自動認識方式の動作について説明する。
Next, the operation of the automatic recognition system of the program storage medium loading device of this embodiment configured as described above will be explained.

プログラムA51から同一のプログラム格納媒体5に格
納されているプログラムB52を内部呼出しすると、プ
ログラムA51は自プログラムがどの装置に装着されて
いるプログラム格納媒体5から主記憶にロードされたの
かを知ることができないので−プログラムA511よび
プログラムB52が格納されているプログラム格納媒体
5が装着されている装置番号を認識するために仮装置番
号設定手段lを起動し、板装置番号の初期値としてOを
仮装置番号格納領域2に設定させる。
When the program A51 internally calls the program B52 stored in the same program storage medium 5, the program A51 cannot know from which device the program storage medium 5 is loaded into the main memory. Therefore, in order to recognize the device number in which the program storage medium 5 in which the program A 511 and the program B 52 are stored is installed, the temporary device number setting means 1 is activated, and O is set as the initial value of the board device number. Set it in number storage area 2.

次に、仮装置番号設定手段1は、実際にプログラムA5
1およびプログラムB52が格納されているプログラム
格納媒体5が装着されている装置番号を得るために、仮
装置番号格納領域2にセットされている装置番号の装置
に対して識別子4の読取り要求を発行する。
Next, the temporary device number setting means 1 actually executes the program A5.
1 and the program storage medium 5 in which the program B52 is stored, issue a read request for the identifier 4 to the device with the device number set in the temporary device number storage area 2. do.

読取り要求した装置にプログラム格納媒体5が装着され
ていない場合、あるいは装着されていても識別子4が検
出されない場合には、仮装置番号格納領域2に格納され
ている装置番号は実際にプログラムA51およびプログ
ラムB52が格納されているプログラム格納媒体5が装
着されている装置の番号ではないので、仮装置番号設定
手段1に板装置番号の更新を要求する。仮装置番号設定
手段1は、板装置番号に1を加算して板装置番号を更新
して仮装置番号格納領域2に設定し、以降は同様の手順
で識別子4が検出されるまで仮装置番号を更新していく
If the program storage medium 5 is not installed in the device requested for reading, or if the identifier 4 is not detected even if it is installed, the device number stored in the temporary device number storage area 2 is actually the program A51 and Since this is not the number of the device in which the program storage medium 5 in which the program B 52 is stored is installed, a request is made to the temporary device number setting means 1 to update the board device number. The temporary device number setting means 1 adds 1 to the board device number to update the board device number and sets it in the temporary device number storage area 2, and thereafter uses the same procedure until the identifier 4 is detected. will be updated.

読取り要求した装置に装着された媒体から識別子4が検
出された場合には、装置番号認識手段3はそのときに仮
装置番号格納領域2に格納されている装置番号が実際に
プログラムA51およびプログラムB52を格納するプ
ログラム格納媒体5を装着する装置の装置番号であるこ
とを認識し、この装置番号の装置に対してプログラムB
52のロード要求を行う。
When the identifier 4 is detected from the medium attached to the device that requested reading, the device number recognition means 3 determines whether the device number stored in the temporary device number storage area 2 at that time is actually the program A51 and the program B52. It recognizes that this is the device number of the device into which the program storage medium 5 that stores program B is installed, and the program B is
52 load request is made.

例えば、装置番号10のフロピーディスク装置にプログ
ラム格納媒体5が装着されている場合には、仮装置番号
がO〜10まで更新されて10になったときに装置番号
10のフロピーディスク装置から識別子4が検出されの
で、装置番号10のフロピーディスク装置がプログラム
格納媒体5を装着する装置であるとUl識される。この
ため、この装置番号10のフロピーディスク装置に対し
てプログラムB52のロード要求が行われる。
For example, if the program storage medium 5 is installed in the floppy disk device with device number 10, when the temporary device number is updated from O to 10 and reaches 10, the floppy disk device with device number 10 is loaded. Since the identifier 4 is detected, the floppy disk device with the device number 10 is identified as the device into which the program storage medium 5 is installed. Therefore, a request is made to load the program B52 to the floppy disk device with device number 10.

なお、上記実施例においては、呼出し元のプログラム5
1Aと呼び出されるプログラムB52とが同一のプログ
ラム格納媒体5に格納されているものとしたが、呼出し
元のプログラムと呼び出されるプログラムとはかならず
しも同一のプログラム格納媒体に格納されている必要は
ないことはいうまでもない。
Note that in the above embodiment, the calling program 5
Although it is assumed that 1A and the called program B52 are stored in the same program storage medium 5, it is not necessary that the calling program and the called program are stored in the same program storage medium. Needless to say.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、仮装置番号設定手段、仮
装置番号格納領域および装置番号認識手段を設けること
により、主記憶にロードされたプログラムからプログラ
ム格納媒体に格納された他のプログラムを呼び出す場合
にプログラム格納媒体が装着されている装置を自動的に
認識することができ、利用者が装置番号を指示すること
なしにかつプログラムを修正することなしに任意の装置
にプログラム格納媒体を装着できるという効果がある。
As explained above, the present invention provides a temporary device number setting means, a temporary device number storage area, and a device number recognition means to call another program stored in a program storage medium from a program loaded into the main memory. The device in which the program storage medium is installed can be automatically recognized when the program storage medium is installed, and the program storage medium can be installed in any device without the user specifying the device number or modifying the program. There is an effect.

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図はプログラム格納媒体の内容を示す図である。 図において、 1・・・仮装置番号設定手段、 2・・・仮装置番号格納領域、 3・・・装置番号認識手段、 4・・・識別子、 5・・・プログラム格納媒体、 51・・プログラムA1 52・・プログラムBである。 FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention; FIG. 2 is a diagram showing the contents of the program storage medium. In the figure, 1...Temporary device number setting means, 2...Temporary device number storage area, 3...device number recognition means, 4...Identifier, 5...program storage medium, 51...Program A1 52...Program B.

Claims (1)

【特許請求の範囲】 プログラムから他のプログラムが呼び出されたときに起
動され前記他のプログラムが格納されているプログラム
格納媒体が装着されている装置番号を認識するために使
用される仮装置番号を設定する仮装置番号設定手段と、 この仮装置番号設定手段により設定された前記仮装置番
号が格納される仮装置番号格納領域と、この仮装置番号
格納領域に格納されている仮装置番号の装置に装着され
ている媒体に対して前記他のプログラムが格納されてい
るプログラム格納媒体であることを示す識別子の読取り
を行い前記識別子が検出されたときに前記仮装置番号が
実際に前記プログラム格納媒体が装着されている装置番
号であることを認識し前記識別子が検出されないときに
前記仮装置番号設定手段に前記仮装置番号の更新を要求
する装置番号認識手段と、 を有することを特徴とするプログラム格納媒体装着装置
の自動認識方式。
[Claims] A temporary device number that is activated when another program is called from a program and is used to recognize the device number in which the program storage medium in which the other program is stored is installed. a temporary device number setting means to be set; a temporary device number storage area in which the temporary device number set by the temporary device number setting means is stored; and a device with a temporary device number stored in this temporary device number storage area. An identifier indicating that the medium installed in the medium is a program storage medium in which the other program is stored is read, and when the identifier is detected, the temporary device number is actually determined by the program storage medium. a device number recognition unit that recognizes that the device number is a device number in which the temporary device number is installed, and requests the temporary device number setting device to update the temporary device number when the identifier is not detected. Automatic recognition method for storage media loading device.
JP9089286A 1986-04-18 1986-04-18 Automatic recognizing system for loading device of program store medium Pending JPS62247422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9089286A JPS62247422A (en) 1986-04-18 1986-04-18 Automatic recognizing system for loading device of program store medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9089286A JPS62247422A (en) 1986-04-18 1986-04-18 Automatic recognizing system for loading device of program store medium

Publications (1)

Publication Number Publication Date
JPS62247422A true JPS62247422A (en) 1987-10-28

Family

ID=14011060

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9089286A Pending JPS62247422A (en) 1986-04-18 1986-04-18 Automatic recognizing system for loading device of program store medium

Country Status (1)

Country Link
JP (1) JPS62247422A (en)

Similar Documents

Publication Publication Date Title
US5097533A (en) System and method for interfacing computer application programs written in different languages to a software system
GB2231419A (en) Program-updating PROM
JPS62247422A (en) Automatic recognizing system for loading device of program store medium
JP2746189B2 (en) File access control system
JPH0337748A (en) External storage accessing system utilizing main storage
JPS62194559A (en) Memory scheduling system of program in virtual storage system
JPH08249024A (en) Programmable controller
JPH02304624A (en) Information processor
JPS62145327A (en) Merging system for common subroutine
JPH03154130A (en) Task switching system
JPH02105237A (en) Data update system for sequence organization file
JPH03271857A (en) Session start processing system
JPS62115540A (en) Automatic install processing system for option program
JPH03282756A (en) Asynchronous input/output system
JPH1027153A (en) Bus transfer device
JPH01166124A (en) Volume shared control system
JPH03255533A (en) Symbol managing system in programming language processing system
JPH0287227A (en) Data processor
JPH0272435A (en) Central arithmetic processor
JPS6031646A (en) Data processor
JPS63226734A (en) Memory control system
JPS63165931A (en) Storing system for information on discontinuous instruction fetch address
JPH0397032A (en) Instruction prefetch system
JPS6180336A (en) Testing method of program
JPS60198661A (en) Input and output control system