Corrupt Programs

Anything QL Software or Programming Related.
RWAP
RWAP Master
Posts: 2892
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: Corrupt Programs

Post by RWAP »

It would be good to de-compile that and convert it back to English (as well as fix the file issue)


User avatar
Andrew
QL Wafer Drive
Posts: 1032
Joined: Tue Jul 17, 2018 9:10 pm

Re: Corrupt Programs

Post by Andrew »

RWAP wrote: Wed Aug 14, 2024 5:44 am It would be good to de-compile that and convert it back to English (as well as fix the file issue)
Martin decompiled it. I was going to tidy it up to get it into loadable state, but I had no time for it yet. And I will probably not have enough time in the near future, so if anyone wants to help, here is the attached decompiled code.
This is what Martin said:
I've got DeLib to run through Cosmos without complaint. You will need the Cosmos_ext file loaded for it to recognize the keywords.

I don't how good the decompilation is. I've not yet tried to tidy it up, or load it.
Note that it has generated line numbers above 32000, So the program will need to be split into two parts and some renumbering in a text editor will be needed.

In QLib 3.36 compiled programs, there is a code $02, which says 'here comes a command' like OPEN, or CLS. Rather than a function.
But v3.22 does not seem to have this. So I have scanned the compiled programs name list, and matched the host systems name list and name table, to try to identify if the keywords in the compiled program are command or functions.
This is why you need to load any extensions that the compiled program needs. I've tried to make all the changes only come into effect for v3.22 programs.
Attachments
cosmos.zip
(216.48 KiB) Downloaded 128 times


Post Reply