Note: origin of this version of DECOMP is unknown. It should handle CST-expanded systems. HP3000 DECOMPILER 7.0 FILE NAME? editor.pub.sys TYPE 'HELP' FOR ASSISTANCE. -help The options available after a prompt are as follows: -Carriage Retn. Displays the next 22 lines of the source file. At startup, origin is at 0.0 -2.51 Displays 22 lines starting at loc'n 51 in segment 2. -P Prints the 22 lines just displayed on the LP. LP file stays open until DECOMP terminates. -P 2.1/2.34 Prints on LP the specified range of locations. Addresses are inclusive. -D Displays one page, 160 words, in format like FCOPY's ";octal;char", starting at the current position. -D 5.1 Display one page, in octal/ascii format, starting at location 5.1. -D 5.1/5.67 Display the range specified in octal/ascii format. -D DB+5 Display one page from global DB area, starting with location 5. -D DB+5/20 Display range specified from global DB area in octal/ascii format. -M 1.2/1.35 Attempt to modify the specified range in the source file, if write access is available. New data may be an octal number or two literal characters between quote marks, a return indicates no change. -N NEWFILE Opens NEWFILE as new decompile source file, this may be a type SL or PROG. An invalid file will terminate the program. -S DEBUG Begins decompilation at the start of the segment DEBUG in an SL file. -F FOPEN Starts decompiling at the entry FOPEN in the correct segment. -F 3.5 Starts decompiling at segment 3, entry 5, provided this is a valid, local entry. An entry number of 0 causes the list to begin with the STT for that segment. -F "PCAL X",0/7 Locates a specific instruction type by scanning the range given and listing only those lines for which the left side of the nemonic listed matches the search string exactly. -F #12345,0/10 Scans the range given and lists any occurance of the instruction whose numeric value matches the octal number given. -E Terminates DECOMP. -R PROGFILE Attempt to run the program given, if no program is indicated the file being decompiled is used, if it is type PROG. -:COMMAND Execute the line given as an MPE system command, this may be any valid programmatic command. ---------------------------------------------------- Notes: 1. You can omit the segment number in an address. EG 43 means location 43 in the current segment. 2. You can send the output from a 'D' or 'H' command to the line printer file by adding a ",OFFLINE" after the command and any parameters involved. 3. If parm=1 in the :RUN command decomp expects the file name to have been equated to DECFILE and no dialog will take place at startup. 4. The offline formaldesignator is CODELIST. This name may be equated to ANYTHING. 5. An * before the name of a procedure in an SL means that it is an external procedure. 6. UNCAL refers to the entry as being uncallable. - Sample decompilation: FILE EDITOR.PUB.SYS SEGMENT 7 LENGTH 5770 7.0 000600 .. ZERO,NOP <-- Primary Entry HP32201 7.1 051001 R. STOR DB+001 7.2 140003 .. BR P+ 003 <<=5>> 7.3 025001 *. LDNI 1 <-- Secondary Entry BASICENTRY 7.4 051001 R. STOR DB+001 7.5 024410 ). PSHR STA 7.6 013302 .. TRBC BIT 2 7.7 027410 /. SETR STA 7.10 041604 C. LOAD Q- 004 7.11 037401 ?. ANDI %1 7.12 013703 .. BRE P+ 003 <<=15>> 7.13 025001 *. LDNI 1 7.14 051011 R. STOR DB+011 7.15 173206 .. LRA DB+206,I 7.16 170003 .. LRA P+ 003 <<=21>> 7.17 010201 .. LSL 1 BIT 7.20 140011 .. BR P+ 011 <<=31>>