Porting RUN files without source
#26287
26 Oct 01 07:15 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
I've been a user of Alpha Micro for 20 years and most of my software works up to 1.4b. I'm excited to see what the possibilities that A-shell will have and it's backward compatibility. I just downloaded the windows version, but I didn't see how to pay for it or if it offers a guarantee of backward compatibility. I'm going to install in now...wish me luck! Stephen
[ 28 October 2001: Message edited by: Jack McGregor ]
|
|
|
Re: Porting RUN files without source
#26288
27 Oct 01 12:26 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
Welcome Stephen. I think you will find that A-Shell has pretty good backwards compatibility to AMOS 1.4 and earlier. If you use OCMPIL, you can be pretty much guaranteed of 100% hash compatibility with the RUN files. With the new COMPIL, things get a bit trickier, since there were actually several sub-versions of COMPIL.LIT/RUN.LIT which had minor hash variations. Refer to the User's Guide section on COMPIL for information about the various switches that affect the level of compatibility or features implemented. Another common compatibility issue relates to whether you are using LOKSER. A-Shell works either way, but you must set the LOKSER parameter in the MIAME.INI accordingly. (Programs not designed to work with LOKSER on will get all sorts of errors if you run them with LOKSER=ON under A-Shell, just as they would under AMOS.)
As for paying for it, just contact us directly via email (admin@microsabio.com) or by phone (818-710-8437) to arrange the details. In the meantime, feel free to use the eval version. And please feel free to post questions on the message board.
|
|
|
Re: Porting RUN files without source
#26289
27 Oct 01 10:49 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Hi Jack, Actually, I do have a problem. I'm using Kermit to transfer the information over, and the run's give me the error: ?run file is an incompatible format. Do you know of a transfer program that will keep the run's, and transfer dat files? About 50% of my programs, I don't have the source for. If I can make the transition, it will be one heck of a lifesaver Stephen
|
|
|
Re: Porting RUN files without source
#26290
28 Oct 01 08:12 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
I thought that Kermit was capable of binary file transfers, but perhaps it depends on the version, switches, etc. Step one would be to see if the hash of the file is being changed by the transfer. (DIR/H works the same on both A-Shell and AMOS.) If not, then obviously you need to fix the file transfer. One alternative you could try is ZTERM, which certainly will do binary file transfers. Follow the link on our website to the ZTERM download page and get ZTERM 2000. It runs in eval mode for a couple of weeks which should give you time to test it.
If the hash is not changing, and you are still getting "incompatible run format", then your RUN files must be in some format not presently recognized by A-Shell. This could be because they are extremely old (prior to what is not the OCMPIL RUN format) or because they were compiled with some non-Alpha compiler, such as d/Soft's. In the latter case, you are in trouble, because A-Shell will not ever recognize the d/Run binary format (although it will recognize many of the d/Basic source extensions.) In the former case (very old RUN files), it may just be a matter of us having to enhance our RUN to recognize a different header signature. (By the way, what kind of versions do you get with DIR/V on these RUN files? If they are all kinds of weird garbage, then it probably means that these RUN's pre-date the introduction of the standard version headers for RUN, SBR, and LIT files (which I think means they came from the old AMOS-WD16 days.)
If you're not sure, you can email an example to support@microsabio.com and we can take a look at it.
However, I must warn you that when porting without source code, it is difficult to guarantee success. Certainly if the source code you have is representative of the programs for which you don't have source code, then your chances improve. But it is not unusual to have to review the source code to figure out why a program isn't working as expected. Often this is because of a programming error or inadvertant reliance on an undocumented feature or bug which is difficult or non-sensical to try to emulate.
The other problem you may run into is use of novel XCALLs. Fortunately, A-Shell will report their names, and even give you information about the number and types of parameters. And A-Shell does include hundreds of XCALLs, including all the most common ones. But if you didn't write the program and don't recognize the XCALL, that could be difficult to deal with.
If it comes down to absolutely needing source code, you may be able to obtain a decompiler. We do not have one, but I (vaguely) recall that one or more were marketed in AMUS over the years. You might contact Jeff Kreider at AMUS to see if he can point you in the right direction on that.
|
|
|
Re: Porting RUN files without source
#26291
30 Oct 01 07:12 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Non-amos versions of Kermit default to files being of type "TEXT", which means you need to set the file type to binary on the DOS/Windows side before you start those Kermit file transfers. Otherwise, Kermit is creatively adding line ending characters in the middle of your file! For most Kermits, the command would be "set file type binary". Alpha Kermit and Autolog's built in Kermit commands default to sending binary type files. Originally posted by Stephen Wadsworth: Hi Jack,
Actually, I do have a problem. I'm using Kermit to transfer the information over, and the run's give me the error: ?run file is an incompatible format.
|
|
|
Re: Porting RUN files without source
#26292
12 Nov 01 11:37 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Jack McGregor: I installed Zterm 2000, but I was thinking my problem is on the Alpha side. Currently to connect my Alpha to my IBM, I used Kermit on the Alpha side and ProCom Plus on the IBM side, through the serial port. If I'm using Zterm 2000 could I just use the AM-62 terminal driver on the Alpha side? Or do I need a program on the Alpha side, and if so what program? Bob Rubendunst : Thanks for your advice, I will check that out also. Is Alpha Kermit, that which runs on Amos. Because, I do have IBM Kermit too, but I like ProCom Plus better for Dos. On the Alpha side, I run Kermit then set block 1 and it would only transfer text. I didn't know of the set file type binary command. I'm slow at this, but determined Thanks, Stephen
|
|
|
Re: Porting RUN files without source
#26293
13 Nov 01 04:44 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
As far as terminal emulation goes, ZTERM 2000 will emulate am62a (or wyse50, am62c, am65, etc.) so you can just use the standard or appropriate terminal driver (e.g. am62a.tdv) on the Alpha side. But for file transfer, if the connection is serial, you'll need one other module that handles the Alpha side of the transfer. In ZTERM's case, the module is ZTXFER.LIT. It's installed on the PC side when you install ZTERM 2000, and you'll need to move it to the Alpha before you can do serial transfers. One way to do that would be with another file transfer program like Kermit. Or, you can use the Configuration..Serial Transfer dialog with ZTERM 2000 itself to upload it to (slowly) to the Alpha.
|
|
|
Re: Porting RUN files without source
#26294
16 Nov 01 04:00 AM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
|
|
|
Re: Porting RUN files without source
#26295
16 Nov 01 11:33 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
The first 2 bytes (01 f0) of these dumps indicate they were compiled under a version of COMPIL prior to 1.3. (The 1.3 OCMPIL signature is 02 f0, and is usually preceded by 10 bytes of version information.) I'm not sure how much difference there is the rest of the format, but just to see, I've added support to 4.6(787)-3 to treat that version the same as OCMPIL and will email the ashw32.exe for you to test it with. If it works, great. If not, I can probably find you a copy of the source to the standard vlist.bas from AlphaAccounting, but as for the other program, you may need to find a decompiler or contact the developer or just forget about it (or rewrite it.)
As for your questions #2 and #3, at the risk of being difficult, could you please repost them as separate topics? (One of the goals of this BBS is to make it possible for people to help themselves by searching or browsing to see if someone else has already asked the same question, but that becomes very difficult when a post has multiple topics and especially when new topics are introduced several messages down in a thread.)
|
|
|
Re: Porting RUN files without source
#26296
16 Nov 01 03:50 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Good News.
The Alpha Accounting seems to be working of what I tested.
The DANIEL FAUST - SYSTEMS RESEARCH software seems to give an error message: Lock board not installed in system, cannot execute program.
Stephen
|
|
|
Re: Porting RUN files without source
#26297
18 Nov 01 05:01 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
The lock board is probably an "OmniLock" or perhaps just the SSD chip; in either case, there little or no chance of emulating that on the PC. You may have to live without, or re-engineer, that program. I could understand that if the programs stayed on the original Alpha Micro, but the software has been on 4 other Alpha's, with out any problems and didn't have any chip associated with the package. Was The DANIEL FAUST - SYSTEMS RESEARCH that big of a package that everyone had a chip put in to lock it's use?
|
|
|
Re: Porting RUN files without source
#26298
19 Nov 01 09:08 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
Unfortunately I am not familiar with the software from Dan Faust/Systems Research, so I can't say for sure. I was just guessing from the message "Lock board not installed in system" and from the fact that it was not uncommon for application developers in the AMOS world to either directly or indirectly use the SSD or other locking device, that the software is looking for such a device.
The term "lock board" made me think of the OmniLock board, which Dravac, aka d/Soft used in early releases of the Andi database product, which perhaps is used by the program in question. This might explain why the program was running on multiple machines, since perhaps all of those machines had a licensed copy of the database software.
But this is just speculation on my part. Is in not possible to contact Dan Faust to find out for sure? (As an aside, if you purchased the program from him, and it was locked to some "lock board", then it may be a violation of your license agreement to replicate it on multiple machines, whether or not it actually works. You might want to consult whatever agreements you may have or else an attorney.) As a purely technical matter, short of rewriting the program, you would probably need to locate a decompiler to be able to workaround the reference to the obsolete device. I suggest contacting the AMUS user's group or Alpha Micro to see if they know of any decompilers available for sale.
|
|
|
Re: Porting RUN files without source
#26299
19 Nov 01 08:52 PM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
When a program doesn't work, it's hard to know what is causing the problem when it works on an Alpha Micro, but not in a-shell. I'm thinking that there is a problem with Subroutines. I did a hash on all *.sbr's and they check out the same on both sides. Example: Error message: Record not locked in line 9010 ! * 9. ANYCN.SBR - Subroutine to allow changes to any input field. 9010 CNGCTL = 4 : XCALL ANYCN,CNGCTL,WHATNO : RETURN I looked in the program and there isn't an error message - Record not locked So it has to be a-shell system generated? In my amosl.ini the subroutines are load into memory, could this be the reason none of the xcalls work? I don't know how to load subroutines only by amosl.ini. I thought the sbr only had to be in [7,6] to work. As you can see I'm confused Stephen
|
|
|
Re: Porting RUN files without source
#26300
20 Nov 01 10:20 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
I moved your latest post above to a new topic "XCALL Subroutines - Locating Errors", since it seems to be the start of a new thread rather than a continuation of the previous one. - Jack
|
|
|
|
|