How to get a plain text file version of a CP/M .BAS (M-BASIC) program?












1















I have an old game (STRTRK.BAS) from my dad's Kaypro 10 that I would like to convert to a plain text file. Basically, what I'm trying to do is get it onto a modern computer in plain text format so I can look at the source code and print it (hardcopy).



This game is accessible on the K10 itself, by starting up OBASIC (an older version of MBASIC, itself a platform independent implementation of BASIC-80).



The source code can be listed once loaded (again, on the actual machine).



My guess is the best route would be to find a CP/M emulator and install a version of CP/M, OBASIC, and the program onto it, but I actually haven't had any luck finding something that will run on a modern Windows 7 setup.



Any ideas?










share|improve this question























  • Would converting it on the K10 and uploading it through a serial connection be an option?

    – Thorbjørn Ravn Andersen
    2 hours ago
















1















I have an old game (STRTRK.BAS) from my dad's Kaypro 10 that I would like to convert to a plain text file. Basically, what I'm trying to do is get it onto a modern computer in plain text format so I can look at the source code and print it (hardcopy).



This game is accessible on the K10 itself, by starting up OBASIC (an older version of MBASIC, itself a platform independent implementation of BASIC-80).



The source code can be listed once loaded (again, on the actual machine).



My guess is the best route would be to find a CP/M emulator and install a version of CP/M, OBASIC, and the program onto it, but I actually haven't had any luck finding something that will run on a modern Windows 7 setup.



Any ideas?










share|improve this question























  • Would converting it on the K10 and uploading it through a serial connection be an option?

    – Thorbjørn Ravn Andersen
    2 hours ago














1












1








1








I have an old game (STRTRK.BAS) from my dad's Kaypro 10 that I would like to convert to a plain text file. Basically, what I'm trying to do is get it onto a modern computer in plain text format so I can look at the source code and print it (hardcopy).



This game is accessible on the K10 itself, by starting up OBASIC (an older version of MBASIC, itself a platform independent implementation of BASIC-80).



The source code can be listed once loaded (again, on the actual machine).



My guess is the best route would be to find a CP/M emulator and install a version of CP/M, OBASIC, and the program onto it, but I actually haven't had any luck finding something that will run on a modern Windows 7 setup.



Any ideas?










share|improve this question














I have an old game (STRTRK.BAS) from my dad's Kaypro 10 that I would like to convert to a plain text file. Basically, what I'm trying to do is get it onto a modern computer in plain text format so I can look at the source code and print it (hardcopy).



This game is accessible on the K10 itself, by starting up OBASIC (an older version of MBASIC, itself a platform independent implementation of BASIC-80).



The source code can be listed once loaded (again, on the actual machine).



My guess is the best route would be to find a CP/M emulator and install a version of CP/M, OBASIC, and the program onto it, but I actually haven't had any luck finding something that will run on a modern Windows 7 setup.



Any ideas?







basic cp-m






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









dvanariadvanaria

1234




1234













  • Would converting it on the K10 and uploading it through a serial connection be an option?

    – Thorbjørn Ravn Andersen
    2 hours ago



















  • Would converting it on the K10 and uploading it through a serial connection be an option?

    – Thorbjørn Ravn Andersen
    2 hours ago

















Would converting it on the K10 and uploading it through a serial connection be an option?

– Thorbjørn Ravn Andersen
2 hours ago





Would converting it on the K10 and uploading it through a serial connection be an option?

– Thorbjørn Ravn Andersen
2 hours ago










1 Answer
1






active

oldest

votes


















3














M-BASIC-80 knows the modifier "A" for the SAVE command - So, you should be able to create a readable ASCII file directly on the Kaypro computer by doing



LOAD "MYPROG.BAS"
LIST
SAVE "MYPROG.TXT",A


If you don't want to mess with old disks on a modern computer (I recommend you don't even start to look into this), your best bet would be to set up a serial RS-232 connection between the Kaypro and your modern machine - A suitable RS-232-USE dongle, a proper cable and a terminal program would suffice.






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "648"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f10874%2fhow-to-get-a-plain-text-file-version-of-a-cp-m-bas-m-basic-program%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    M-BASIC-80 knows the modifier "A" for the SAVE command - So, you should be able to create a readable ASCII file directly on the Kaypro computer by doing



    LOAD "MYPROG.BAS"
    LIST
    SAVE "MYPROG.TXT",A


    If you don't want to mess with old disks on a modern computer (I recommend you don't even start to look into this), your best bet would be to set up a serial RS-232 connection between the Kaypro and your modern machine - A suitable RS-232-USE dongle, a proper cable and a terminal program would suffice.






    share|improve this answer






























      3














      M-BASIC-80 knows the modifier "A" for the SAVE command - So, you should be able to create a readable ASCII file directly on the Kaypro computer by doing



      LOAD "MYPROG.BAS"
      LIST
      SAVE "MYPROG.TXT",A


      If you don't want to mess with old disks on a modern computer (I recommend you don't even start to look into this), your best bet would be to set up a serial RS-232 connection between the Kaypro and your modern machine - A suitable RS-232-USE dongle, a proper cable and a terminal program would suffice.






      share|improve this answer




























        3












        3








        3







        M-BASIC-80 knows the modifier "A" for the SAVE command - So, you should be able to create a readable ASCII file directly on the Kaypro computer by doing



        LOAD "MYPROG.BAS"
        LIST
        SAVE "MYPROG.TXT",A


        If you don't want to mess with old disks on a modern computer (I recommend you don't even start to look into this), your best bet would be to set up a serial RS-232 connection between the Kaypro and your modern machine - A suitable RS-232-USE dongle, a proper cable and a terminal program would suffice.






        share|improve this answer















        M-BASIC-80 knows the modifier "A" for the SAVE command - So, you should be able to create a readable ASCII file directly on the Kaypro computer by doing



        LOAD "MYPROG.BAS"
        LIST
        SAVE "MYPROG.TXT",A


        If you don't want to mess with old disks on a modern computer (I recommend you don't even start to look into this), your best bet would be to set up a serial RS-232 connection between the Kaypro and your modern machine - A suitable RS-232-USE dongle, a proper cable and a terminal program would suffice.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 hours ago

























        answered 2 hours ago









        tofrotofro

        17k33597




        17k33597






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Retrocomputing Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f10874%2fhow-to-get-a-plain-text-file-version-of-a-cp-m-bas-m-basic-program%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Callistus I

            Tabula Rosettana

            How to label and detect the document text images