How to get a plain text file version of a CP/M .BAS (M-BASIC) program?In search of… SeaWar — NOT...
Minor Revision with suggestion of an alternative proof by reviewer
a sore throat vs a strep throat vs strep throat
How to reduce LED flash rate (frequency)
What route did the Hindenburg take when traveling from Germany to the U.S.?
What does the "ep" capability mean?
Why was Germany not as successful as other Europeans in establishing overseas colonies?
What is the most expensive material in the world that could be used to create Pun-Pun's lute?
How to pronounce 'C++' in Spanish
What was the first Intel x86 processor with "Base + Index * Scale + Displacement" addressing mode?
French for 'It must be my imagination'?
What happened to Captain America in Endgame?
How to creep the reader out with what seems like a normal person?
US visa is under administrative processing, I need the passport back ASAP
Does a semiconductor follow Ohm's law?
Is it possible to determine the symmetric encryption method used by output size?
Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?
Why does nature favour the Laplacian?
What's the polite way to say "I need to urinate"?
Will tsunami waves travel forever if there was no land?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
Apply MapThread to all but one variable
Real-world applications of fields, rings and groups in linear algebra.
How can I practically buy stocks?
Combinable filters
How to get a plain text file version of a CP/M .BAS (M-BASIC) program?
In search of… SeaWar — NOT Battleship!Was the first ARM “processor” a BBC BASIC program?Looking for a specific BASIC music program from the 80sHow to use BASIC after “LOAD ”$",8 on the C64Why does this BASIC program keep restarting?C64 BASIC: How to suppress the '?' sign when using the INPUT command?Why does this BASIC program declare variables for the numbers 0 to 4?How can I view BASIC code hidden by SYS?In CP/M, how does control-Z (hex 1a decimal 26) not interfere with ordinary file storage?How to use the MOD operator in TRS-80 model 100 BASIC?
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
add a comment |
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
Would converting it on the K10 and uploading it through a serial connection be an option?
– Thorbjørn Ravn Andersen
2 hours ago
add a comment |
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
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
basic cp-m
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
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.
add a comment |
Basic interpreters saved the code in a tokenised form to save space. I found this description of the format used by GW-Basic, a later version of MBASIC. I don't know if the file format changed between the versions, though.
http://justsolve.archiveteam.org/wiki/GW-BASIC_tokenized_file
It wouldn't be too hard to write a bit of code to convert from the byte-codes to text.
New contributor
add a comment |
It wouldn't happen to be the one that the listing starts/ends like this, would it?
10 'EXPANDED APRIL 1977 BY W.A. BURTON
20 'PIRATED JAN. 1978 BY ZOSO
30 DIM G(8,8),S(8,8),K(3,3)
40 PRINTCHR$(26)
50 GOSUB 5460
…
6350 IF Q8<0 OR Q8>S THEN GOTO 6340
6360 S=S-Q8:E=E+Q8:PRINT
6370 PRINT E;" UNITS OF ENERGY NOW - TRY AGAIN."
6380 RETURN
6390 RESET
If so, there are lots of copies online, frinstance STRTRK.BAS. The program detokenizes and runs under both OBASIC.COM and MBASIC.COM.
Peter Schorn's Altair 8800 simulator site has emulators and disk images for many versions of CP/M. For instance, I downloaded the CP/M 2 distribution, unpacked it, moved the STRTRK.BAS file to the cpm2
folder and started the emulator with:
altairz80 cpm2
After that, I was able to import the tokenized program with the command R STRTRK.BAS
, then loaded MBASIC and the program could be loaded with LOAD "STRTRK.BAS"
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
edited 2 hours ago
answered 2 hours ago
tofrotofro
17k33597
17k33597
add a comment |
add a comment |
Basic interpreters saved the code in a tokenised form to save space. I found this description of the format used by GW-Basic, a later version of MBASIC. I don't know if the file format changed between the versions, though.
http://justsolve.archiveteam.org/wiki/GW-BASIC_tokenized_file
It wouldn't be too hard to write a bit of code to convert from the byte-codes to text.
New contributor
add a comment |
Basic interpreters saved the code in a tokenised form to save space. I found this description of the format used by GW-Basic, a later version of MBASIC. I don't know if the file format changed between the versions, though.
http://justsolve.archiveteam.org/wiki/GW-BASIC_tokenized_file
It wouldn't be too hard to write a bit of code to convert from the byte-codes to text.
New contributor
add a comment |
Basic interpreters saved the code in a tokenised form to save space. I found this description of the format used by GW-Basic, a later version of MBASIC. I don't know if the file format changed between the versions, though.
http://justsolve.archiveteam.org/wiki/GW-BASIC_tokenized_file
It wouldn't be too hard to write a bit of code to convert from the byte-codes to text.
New contributor
Basic interpreters saved the code in a tokenised form to save space. I found this description of the format used by GW-Basic, a later version of MBASIC. I don't know if the file format changed between the versions, though.
http://justsolve.archiveteam.org/wiki/GW-BASIC_tokenized_file
It wouldn't be too hard to write a bit of code to convert from the byte-codes to text.
New contributor
New contributor
answered 16 mins ago
James RandomJames Random
1011
1011
New contributor
New contributor
add a comment |
add a comment |
It wouldn't happen to be the one that the listing starts/ends like this, would it?
10 'EXPANDED APRIL 1977 BY W.A. BURTON
20 'PIRATED JAN. 1978 BY ZOSO
30 DIM G(8,8),S(8,8),K(3,3)
40 PRINTCHR$(26)
50 GOSUB 5460
…
6350 IF Q8<0 OR Q8>S THEN GOTO 6340
6360 S=S-Q8:E=E+Q8:PRINT
6370 PRINT E;" UNITS OF ENERGY NOW - TRY AGAIN."
6380 RETURN
6390 RESET
If so, there are lots of copies online, frinstance STRTRK.BAS. The program detokenizes and runs under both OBASIC.COM and MBASIC.COM.
Peter Schorn's Altair 8800 simulator site has emulators and disk images for many versions of CP/M. For instance, I downloaded the CP/M 2 distribution, unpacked it, moved the STRTRK.BAS file to the cpm2
folder and started the emulator with:
altairz80 cpm2
After that, I was able to import the tokenized program with the command R STRTRK.BAS
, then loaded MBASIC and the program could be loaded with LOAD "STRTRK.BAS"
add a comment |
It wouldn't happen to be the one that the listing starts/ends like this, would it?
10 'EXPANDED APRIL 1977 BY W.A. BURTON
20 'PIRATED JAN. 1978 BY ZOSO
30 DIM G(8,8),S(8,8),K(3,3)
40 PRINTCHR$(26)
50 GOSUB 5460
…
6350 IF Q8<0 OR Q8>S THEN GOTO 6340
6360 S=S-Q8:E=E+Q8:PRINT
6370 PRINT E;" UNITS OF ENERGY NOW - TRY AGAIN."
6380 RETURN
6390 RESET
If so, there are lots of copies online, frinstance STRTRK.BAS. The program detokenizes and runs under both OBASIC.COM and MBASIC.COM.
Peter Schorn's Altair 8800 simulator site has emulators and disk images for many versions of CP/M. For instance, I downloaded the CP/M 2 distribution, unpacked it, moved the STRTRK.BAS file to the cpm2
folder and started the emulator with:
altairz80 cpm2
After that, I was able to import the tokenized program with the command R STRTRK.BAS
, then loaded MBASIC and the program could be loaded with LOAD "STRTRK.BAS"
add a comment |
It wouldn't happen to be the one that the listing starts/ends like this, would it?
10 'EXPANDED APRIL 1977 BY W.A. BURTON
20 'PIRATED JAN. 1978 BY ZOSO
30 DIM G(8,8),S(8,8),K(3,3)
40 PRINTCHR$(26)
50 GOSUB 5460
…
6350 IF Q8<0 OR Q8>S THEN GOTO 6340
6360 S=S-Q8:E=E+Q8:PRINT
6370 PRINT E;" UNITS OF ENERGY NOW - TRY AGAIN."
6380 RETURN
6390 RESET
If so, there are lots of copies online, frinstance STRTRK.BAS. The program detokenizes and runs under both OBASIC.COM and MBASIC.COM.
Peter Schorn's Altair 8800 simulator site has emulators and disk images for many versions of CP/M. For instance, I downloaded the CP/M 2 distribution, unpacked it, moved the STRTRK.BAS file to the cpm2
folder and started the emulator with:
altairz80 cpm2
After that, I was able to import the tokenized program with the command R STRTRK.BAS
, then loaded MBASIC and the program could be loaded with LOAD "STRTRK.BAS"
It wouldn't happen to be the one that the listing starts/ends like this, would it?
10 'EXPANDED APRIL 1977 BY W.A. BURTON
20 'PIRATED JAN. 1978 BY ZOSO
30 DIM G(8,8),S(8,8),K(3,3)
40 PRINTCHR$(26)
50 GOSUB 5460
…
6350 IF Q8<0 OR Q8>S THEN GOTO 6340
6360 S=S-Q8:E=E+Q8:PRINT
6370 PRINT E;" UNITS OF ENERGY NOW - TRY AGAIN."
6380 RETURN
6390 RESET
If so, there are lots of copies online, frinstance STRTRK.BAS. The program detokenizes and runs under both OBASIC.COM and MBASIC.COM.
Peter Schorn's Altair 8800 simulator site has emulators and disk images for many versions of CP/M. For instance, I downloaded the CP/M 2 distribution, unpacked it, moved the STRTRK.BAS file to the cpm2
folder and started the emulator with:
altairz80 cpm2
After that, I was able to import the tokenized program with the command R STRTRK.BAS
, then loaded MBASIC and the program could be loaded with LOAD "STRTRK.BAS"
answered 7 mins ago
scrussscruss
7,66611450
7,66611450
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Would converting it on the K10 and uploading it through a serial connection be an option?
– Thorbjørn Ravn Andersen
2 hours ago