Claims
- 1. An apparatus for automatically preparing a flowchart of a source program having more than two different command types, the apparatus comprising:
- source program storage means for storing lines of the source program;
- jump command storage means for previously storing as a group a list consisting of jump commands used in an assembler language for the source program;
- identification data producing means, coupled to said source program storage means and said jump command storage means, for judging whether or not a jump command is included in a line of the source program by comparing the lines of the source program with the jump commands stored in the jump command storage means and for producing and respectively grouping first and second identification data in accordance with the judging result,
- said first identification data respectively being designated for each command of the source program to uniquely identify command type and to identify if execution contents of other commands immediately preceding and following a particular command along a command sequence of the source program are to be executed sequentially,
- said first identification data including:
- first data indicative of the command type, having label, jump command, return command and other command types,
- second data indicative that a corresponding line of the source program is a continuation line or a first command in a block, and
- third data descriptive of a command or label,
- said second identification data respectively being designated for each jump command to identify which address of a command is to be jumped to;
- identification data storage means, coupled to said identification data producing means, for storing said first and second identification data as respective groups;
- analysis means, coupled to said identification data storage means, for analyzing a value of said first identification data stored in said identification data storage means to generate a plurality of drawing elements of the flowchart and for analyzing a value of said second identification data stored in said identification data storage means to generate at least a drawing line connecting one of the plurality of drawing elements to another of the plurality of drawing elements; and
- output means, coupled to said analysis means, for outputting the plurality of drawing elements and at least the drawing line of the flowchart of the source program,
- 2. The apparatus for automatically preparing a flowchart according to claim 1, wherein said second identification data includes first data indicative of an address of a command which is to be jumped to.
- 3. The apparatus for automatically preparing a flowchart according to claim 2, wherein the address is a relative address.
- 4. The apparatus for automatically preparing a flowchart according to claim 1, wherein said second identification data includes second data indicative of a location of the jump command and third data indicative of the location of a command which is to be jumped to.
- 5. The apparatus for automatically preparing a flowchart according to claim 4, wherein said second identification data further includes fourth data indicative of difference between said second data and said third data.
Priority Claims (1)
Number |
Date |
Country |
Kind |
1-299012 |
Nov 1989 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 07/614,454, filed on Nov. 16, 1990, now abandoned.
US Referenced Citations (14)
Foreign Referenced Citations (1)
Number |
Date |
Country |
3302715A1 |
Aug 1984 |
DEX |
Continuations (1)
|
Number |
Date |
Country |
Parent |
614454 |
Nov 1990 |
|