TAMS

Home | Products | Support | How to Order | Contact Us | Search  

     
PROG2TOPROG Converter
TAMS 50990

Convert PROG2 files to PROG

Allows software development to be hosted on Series 700 with BASIC/UX and targeted for Series 300 and BASIC/DOS

Prog2toprog translates HP BASIC PROG2 files, created by STORE statements on HP BASIC/UX on Series 700’s, to HP BASIC PROG files, which can be LOADed by HP BASIC/WS, HP BASIC/DOS, and HP BASIC/UX on Series 300’s.

BASIC for Windows has its own PROG format, so it cannot LOAD these PROG files.

Options:

 -i

This required argument specifies the input PROG2 file to be translated.

-o

This required argument specifies the output PROG file which will contain the translated program. PROG2TOPROG will create this file if it does not already exist. The output file must not be the same file as the input file.

 Restrictions

 Some size restrictions on the PROG format, such as the total size allocated for variables, are not detected until a program is RUN. Prog2toprog will not detect these errors. Therefore, a translated program should always be RUN on HP BASIC/WS, HP BASIC/DOS, or HP BASIC/UX on a Series 300 to verify that no PROG format size restrictions have been violated. Note that LOADing and RUNning the translated program o HP BASIC/UX on a Series 700 is NOT sufficient to verify this, because the program will be internally translated back to PROG2 format when it is LOADed by HP BASIC/UX on a Series 700.

Diagnostics

 The diagnostics produced by Prog2toprog are intended to be self-explanatory. The most common errors reported are:

 Prog2toprog cannot convert CSUBs.

 The PROG2 format removes a number of size restrictions on HP BASIC programs. When converting to PROG format, these size restrictions will be enforced:

  • Line numbers are restricted to the range 1 to 32767.
  • Array bounds and string lengths must be <= 32767.
  • Subprograms may have only 63 parameters.
  • Each subprogram may define only 7268 symbols (this includes variables, @ names, COM block names, line labels, and line numbers referenced by HP BASIC statements such as GOTO).
   

 Home | Products | Distributors | Support | Company Info | How to Order | Contact Us | Search

 
All referenced prices are United States Dollars.
Copyright © 1997-2006 Test & Measurement Systems Inc.
Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders.  Specifications are subject to change without notice.

Test & Measurement Systems Inc.
750 14th Street SW
Loveland, CO 80537

Tel:  + 970-669-6553
Fax: + 970-669-3090
sales @ tamsinc.com

 

18 Oct 2005