Jump to content
IGNORED

BAS2File reverter out there?


Mclaneinc

Recommended Posts

There's a lot of stuff that has been converted by Jindroshes (spelling) bas to file loader, sadly it conflicts with Altirra's BASIC but I reckon the optimisations in the BASIC could help some of these programs run better and smoother, is there a reverter out there?

 

If I could do it by hand I would but the grey matter just isn't kicking it these days :)

Link to comment
Share on other sites

Can you upload an example, preferably one that's not too long or complex?

 

In theory couldn't you just hit Break or Reset then save it to the H: emulated device?

OK, plenty of Basic programs disable Break but that's easily gotten around. Some also coldstart the system on Reset which could be a problem.

But for most stuff so long as it doesn't go screwing pointers up or otherwise reverting to sabotage as method to stop you viewing them, should be doable.

 

 

Hint - force a Break in Altirra. From the debug console,

E 11 0

Edited by Rybags
Link to comment
Share on other sites

OK, the ATR generated seems to be one of those annoying truncated jobs. So I'm guessing the entire process is just putting the file onto a booter as raw data.

 

Don't suppose you happen to have a copy of the utility that generates these disks? I'm thinking the easiest method to get back to Basic (see what I did there?) is to just work out how much prepended data has to be thrown away.

End result you'd likely end up with a program a little longer than it should be (but hey, XL Basic does that anyway).

Then just LIST it to a file.

 

But do note of course, that debug command I mentioned earlier should allow you to break out of virtually any Basic program, if there's no action it probably means there's some assembler routine running.

Link to comment
Share on other sites

hookey.bas

 

OK, this seems to work. I derived it from the earlier enclosed ATR image.

 

The trick seems to be just throw out the first 258 bytes of the file and what's left can be loaded in Basic.

 

Also on x64 here so can't immediately try incompatible stuff... might have 32-bit Win on a laptop somewhere.

Link to comment
Share on other sites

Hmmm,

 

there is BAS2BOOT by Jindrich and ADir to do the reverse... http://www.atarimax.com/jindroush.atari.org/data/asoft/adir.txt

However, its possibly a 16Bit (DOS) PC application and may or may not run under Win 32 Bit or 64 bit.

http://www.atarimax.com/jindroush.atari.org/asoft.html

Edited by CharlieChaplin
Link to comment
Share on other sites

Ah, got running via DOSBox v.74, well that and a DPMI program...

 

What I then discovered was that some people had BAS2BOOT made files that were part of a set of files, so if it used a font file supposed to be on the same disk you would get a 130 error because BAS2BOOT only takes one file and makes an ATR of it but its not a true atr, just a bas file with a small loader.

 

BUT otherwise it does the job perfectly, ll I need to do is find a way to script it or some such...Sadly not possible under my beloved Directory Opus on the PC...

 

And as an added reply to Rybags, was able to run the bas2boot software under dosbox and it was set up as a one way only program, apart from offering a choice of output formats including a full size atr and the loading message you could do nothing but make these files...

 

No decoder..

Edited by Mclaneinc
Link to comment
Share on other sites

Thanks all, just as a matter of interest, how did you strip the files down Rybags, as said I used Omnivore to try abd cut off the 258 bytes and there's no enabled cut option. Would be interesting to know for future uses.

 

And again, thank you all..

Link to comment
Share on other sites

Thanks for the HxD link, downloaded and used to mutilate a copied atr using the 258 byte strip and it worked fine...

 

Thank you both...

 

Paul...

 

And back to the point of me doing it, ran some of these reverted files under Altirra BASIC and good speed improvement, ran under Altirra OS AND Altirra BASIC and superb increase where needed ie init times and game movement (depending if its synced or not)

 

PS, thankfully no one adjusted the loading message or I suspect unless there's a set space allowance for the message that the byte's needed to be removed would change depending on message...

Edited by Mclaneinc
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...