Page 1 of 1

Getting XRoar (or anything else) to save as ASCII

Posted: Tue Dec 12, 2023 6:35 pm
by tjewell
Hi all, I'm having a complete blank on how to do this ...

I've got a .CAS file with a big BASIC program in. I'd love to edit it on my computer. So I thought, simple, I'll save as ASCII from within XRoar - but, actually, can I do that? I can do a CSAVEM"STUFF",A - but it's still padded with a bunch of CAS stuff. So what's a nice simple way to get a BASIC file out of a Dragon and into ASCII?

Cheers, Tony

Re: Getting XRoar (or anything else) to save as ASCII

Posted: Tue Dec 12, 2023 8:16 pm
by sixxie
tjewell wrote: Tue Dec 12, 2023 6:35 pm I've got a .CAS file with a big BASIC program in. I'd love to edit it on my computer. So I thought, simple, I'll save as ASCII from within XRoar - but, actually, can I do that? I can do a CSAVEM"STUFF",A - but it's still padded with a bunch of CAS stuff. So what's a nice simple way to get a BASIC file out of a Dragon and into ASCII?
If you run XRoar with "-lp-file <filename>" and then LLIST your BASIC program, you should end up with it in a file. CR-separated of course.

Re: Getting XRoar (or anything else) to save as ASCII

Posted: Wed Dec 13, 2023 12:12 am
by Alastair
LLIST is the better idea, but if you want to save a de-tokenised BASIC program the command is CSAVE"STUFF",A (CSAVEM is for saving machine code).

Re: Getting XRoar (or anything else) to save as ASCII

Posted: Thu Jan 18, 2024 3:31 pm
by megagarrym
If you use the LLIST approach, you'll need to then hit ctrl+shift+P to flush the buffer. LLISTing will create the file specified in your -lp-file switch, ctrl+shift+p will stick your listing in it.