• [Q] De-tokenize ZX Spectrum Basic for PC?

    From Edward Solly@21:1/5 to Volker Bartheld on Sun Nov 10 10:11:04 2019
    On Friday, 23 March 2018 04:28:23 UTC-4, Volker Bartheld wrote:
    ... currently working on some crap games contributions and the question
    came up how to transfer and convert Sinclair ZX Spectrum Basic programs for editing on PC. So more or less the opposite of bas2tap [1].

    Just running

    10 OPEN #3;"t"
    20 LLIST
    30 CLOSE #3

    in an emulator and grabbing if1_out.txt (using EightyOne [2]) as the ZX Interface 1 manual suggests is close but intrododuces unwanted line breaks and the need for regex-fiddling.

    Any ideas are highly appreciated. THX.

    Greets,
    Volker

    P.S.: What tool for TZX file management do you recommend? Splitting,
    merging, deleting segmants and generating a catalogizing would be useful. I have a ton of tapes with a ton of programs, most not really correlated.


    [1] http://www.worldofspectrum.org/pub/sinclair/tools/generic/bas2tap26-generic.zip
    https://github.com/andybalaam/bas2tap

    [2]
    https://sourceforge.net/projects/eightyone-sinclair-emulator/



    --
    @: W E B 2 0 1 8 at B A R T H E L D dot N E T
    3W: www.bartheld.net

    I wrote a program in Turbo Pascal 7 to de-tokenize Sinclair BASIC programs. I'll try to dig it up and re-compile with Lazarus or FreePascal. Let me know if you are still interested.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marcos Cruz@21:1/5 to All on Sun Nov 10 21:28:11 2019
    En/Je/On/In 2019-11-10, Edward Solly <aelfstangard@gmail.com> escribió/skribis/wrote/scrit:

    On Friday, 23 March 2018 04:28:23 UTC-4, Volker Bartheld wrote:

    ... currently working on some crap games contributions and the
    question came up how to transfer and convert Sinclair ZX Spectrum
    Basic programs for editing on PC. So more or less the opposite of
    bas2tap.

    I wrote a program in Turbo Pascal 7 to de-tokenize Sinclair BASIC
    programs. I'll try to dig it up and re-compile with Lazarus or
    FreePascal. Let me know if you are still interested.

    Also "listbasic" does what Volker needs. It lists the BASIC source from
    a snapshot or a TAP file. It's part of the Fuse emulator's fuse-utils:

    https://sourceforge.net/projects/fuse-emulator/files/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruno Florindo@21:1/5 to Volker Bartheld on Sun Nov 10 19:17:14 2019
    On Friday, March 23, 2018 at 1:28:23 AM UTC-7, Volker Bartheld wrote:
    ... currently working on some crap games contributions and the question
    came up how to transfer and convert Sinclair ZX Spectrum Basic programs for editing on PC. So more or less the opposite of bas2tap [1].

    Just running

    10 OPEN #3;"t"
    20 LLIST
    30 CLOSE #3

    in an emulator and grabbing if1_out.txt (using EightyOne [2]) as the ZX Interface 1 manual suggests is close but intrododuces unwanted line breaks and the need for regex-fiddling.

    Any ideas are highly appreciated. THX.

    Greets,
    Volker

    P.S.: What tool for TZX file management do you recommend? Splitting,
    merging, deleting segmants and generating a catalogizing would be useful. I have a ton of tapes with a ton of programs, most not really correlated.


    [1] http://www.worldofspectrum.org/pub/sinclair/tools/generic/bas2tap26-generic.zip
    https://github.com/andybalaam/bas2tap

    [2]
    https://sourceforge.net/projects/eightyone-sinclair-emulator/



    --
    @: W E B 2 0 1 8 at B A R T H E L D dot N E T
    3W: www.bartheld.net

    Spectaculator, and possibly other emulators, can redirect LPrint and LList to a .txt file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marcos Cruz@21:1/5 to All on Sun Nov 17 13:14:38 2019
    En/Je/On/In 2019-11-11, Bruno Florindo <zxspectrum128@gmail.com> escribió/skribis/wrote/scrit:

    Spectaculator, and possibly other emulators, can redirect LPrint and
    LList to a .txt file.

    That's a good method too, provided you can load the program first. Also
    the Fuse emulator redirects its printing to a text file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Supratim Sanyal <"supratim sanyal@21:1/5 to All on Fri Dec 6 01:25:55 2019
    This is a multi-part message in MIME format.
    Interestingly I found this by Paul Dunn on my (PC) hard-drive - looks
    like I grabbed this from somewhere in 2016. There probably is a later
    version from the author.

    I've linked 1 file to this email:
    * SpecBAS Windows - SpecOS.zip (15.5 MB) hosted on WeTransfer: https://we.tl/t-mAkFNVNldb



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)