+CharlieChaplin Posted June 4, 2018 Share Posted June 4, 2018 Hmmm, there are several (if not dozens) of listing de-protectors / un-protectors for protected (unlistable) Atari Basic listings. Is there such a program for a list-protected TB XL program ?!? Well, I tried several of the old Atari Basic programs to de-protect it, but none of them worked, so I guess I need a program specifically written in/for TB XL. By the way, I want to list a german PD program, written in TB XL and make a few changes (if possible), alas, it has list-protection. The program can be found here: http://www.atarimania.com/game-atari-400-800-xl-xe-gohtic-i-der-aeonen-wechsel_11934.html If you know of such a TB XL program, please give me a link or upload it here... Quote Link to comment Share on other sites More sharing options...
AtariGeezer Posted June 4, 2018 Share Posted June 4, 2018 ATR Tools can do that: http://atariage.com/forums/topic/192052-atr-tools/page-6?do=findComment&comment=3832092 1 Quote Link to comment Share on other sites More sharing options...
+CharlieChaplin Posted June 4, 2018 Author Share Posted June 4, 2018 ATR Tools can do that: http://atariage.com/forums/topic/192052-atr-tools/page-6?do=findComment&comment=3832092 But how ? And can it save the de-protected (listable) file to diskette again ?!? Quote Link to comment Share on other sites More sharing options...
AtariGeezer Posted June 4, 2018 Share Posted June 4, 2018 But how ? And can it save the de-protected (listable) file to diskette again ?!? 1. Open the ATRl File -> Open Image 2. Right Click on the TB file and View as Turbo Basic XL 3. Click the Save Button (Should work in the version above). Quote Link to comment Share on other sites More sharing options...
vitoco Posted June 4, 2018 Share Posted June 4, 2018 Hmmm, there are several (if not dozens) of listing de-protectors / un-protectors for protected (unlistable) Atari Basic listings. Is there such a program for a list-protected TB XL program ?!? Well, I tried several of the old Atari Basic programs to de-protect it, but none of them worked, so I guess I need a program specifically written in/for TB XL. By the way, I want to list a german PD program, written in TB XL and make a few changes (if possible), alas, it has list-protection. The program can be found here: http://www.atarimania.com/game-atari-400-800-xl-xe-gohtic-i-der-aeonen-wechsel_11934.html If you know of such a TB XL program, please give me a link or upload it here... Many years ago, I wrote the ATASCII Printer web service to list my old stuff. Then I added the ability to untokenize Atari BASIC programs, including those that unlistable ones, allowing the creation of new variable names if the original ones were deleted. With that working, I could include the Turbo BASIC XL syntax to it. I'm sure that I could extract the untokenizer module and make it available, but you could try this service to get a printable version of the listing (in images). BTW, I've just tried the service with some *.HSP files from disk 1 (side A), sucessfully! 1 Quote Link to comment Share on other sites More sharing options...
Fox-1 / mnx Posted June 4, 2018 Share Posted June 4, 2018 (edited) Tried the 4 *.HSP files from the first disk and it seems to work fine. CITYGAME.LST HEXARUN.LST VORPGM.LST WILDGAME.LST Done with this: BASLST.XEX with XDOS 2.4 Edit: listing works fine. Editing doesn't. Edited June 4, 2018 by Fox-1 / mnx 2 Quote Link to comment Share on other sites More sharing options...
+CharlieChaplin Posted June 4, 2018 Author Share Posted June 4, 2018 (edited) @AtariGeezer @Vitoco @Fox-1/mnx Great ! Thank you very much !! Of course I want to edit the listing(s)... Edited June 4, 2018 by CharlieChaplin Quote Link to comment Share on other sites More sharing options...
vitoco Posted June 4, 2018 Share Posted June 4, 2018 Edit: listing works fine. Editing doesn't. What I see from my tests is that there are lines with a length longer than 120 chars, but a POKE 82,0 would allow you to edit most of them, the ones that only uses 3 phisical lines (1 logical line) in the screen editor. For the others, you could abbreviate some statements to save space. Anyway, if you ENTER a listing from disk, lines could be up to 255 chars. Quote Link to comment Share on other sites More sharing options...
vitoco Posted June 4, 2018 Share Posted June 4, 2018 Tried the 4 *.HSP files from the first disk and it seems to work fine. CITYGAME.LST HEXARUN.LST VORPGM.LST WILDGAME.LST Done with this: BASLST.XEX with XDOS 2.4 Edit: listing works fine. Editing doesn't. It seems that BASLST.XEX gets confused with Turbo BASIC XL tokens. Those LST files are corrupted! Quote Link to comment Share on other sites More sharing options...
Fox-1 / mnx Posted June 4, 2018 Share Posted June 4, 2018 Yeah, forget about BASLST.XEX for TurboBASIC. It does make the files list-able but they're still useless. Quote Link to comment Share on other sites More sharing options...
Kyle22 Posted June 5, 2018 Share Posted June 5, 2018 Is there any known way of decompiling CTB files? Quote Link to comment Share on other sites More sharing options...
+CharlieChaplin Posted June 5, 2018 Author Share Posted June 5, 2018 Is there any known way of decompiling CTB files? Think the PC program "CHKBAS 1.10" by Jindroush should do it, but never tested it... https://www.atarimax.com/jindroush.atari.org/data/asoft/chkbas_bin.zip Quote Link to comment Share on other sites More sharing options...
vitoco Posted June 5, 2018 Share Posted June 5, 2018 Many years ago, I wrote the ATASCII Printer web service to list my old stuff. Then I added the ability to untokenize Atari BASIC programs, including those that unlistable ones, allowing the creation of new variable names if the original ones were deleted. With that working, I could include the Turbo BASIC XL syntax to it. I'm sure that I could extract the untokenizer module and make it available, but you could try this service to get a printable version of the listing (in images). BTW, I've just tried the service with some *.HSP files from disk 1 (side A), sucessfully! The module that untokenizes Turbo BASIC XL programs for the printer does not currently support programs with more than 128 variables like some of this Gohtic I game. When I wrote that module, I was not aware that TB XL didn't have that Atari BASIC restriction. I must fix it. But... I remembered that the module was based in an old BASIC program I wrote to put variable names in programs that had them deleted as an obfuscation protection. I've searched, found and then run my program over all the *.HSP files and they became listable. I've attached the modified ATRs. There are many isuses with these TB XL programs: (1) Some lines are longer than 120 chars when LISTed, so they must be edited carefully, probably abbreviating statements and removing unneeded spaces. POKE 82,0 (no left margin) and *L- (disable indent mode) commands will help here. (2) The internal variable's name table is "corrupted" as my program used short variable names, leaving unused space after the last variable name as a row of zeroes. Adding a new variable might have an unexpected result. It is recomended to perforrm the LOAD, LIST, NEW, ENTER and SAVE sequence for every program to rebuild the program structure properly before making any modification to them. (3) All of them starts with a line with a VAR=VAR asignment, i.e. it assigns the current value of a variable to itself. It will be 0 when the program starts, and retains its value otherwise. Could this be another protection? Might it be that the program validates that the variable is not the first one in the variable's name table to detect that the recomended procedure in (2) was performed and a then to abort? (4) I had to unlock *.HSP files to be able to modify them, but I didn't lock them again. Be careful! I don't know if any of the programs will try to overwrite itself as an extra protection. I hope this helps!!! GohticI.zip 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.