2

I want to open a Basic 09 code under windows 7. I just want to read the code. I do not want to execute it. Is there a way to do that?

1
  • From an old CoCo?
    – RonJohn
    Apr 27, 2021 at 6:41

2 Answers 2

5

(Not a definite answer, just some information about the issues at work)

Might not be as easy as it seems.

For one, BASIC09 is, unlike most other BASICs a compiler, generating I-Code. In today's lingo one might call that a Bytecode. The code generated does not include all source information. For example procedure or variable names were replaced by their target address, not only speeding up execution but saving space as well. On the down side this means when 'disassembling' the code, not all information can be regained. (This Answer got some additional information)

Next, BASIC09 contained an optimizer, removing dead code, evaluating constant expressions, reorganizing expressions and alike. So while the compiler itself would just make names harder to read (for most parts), the packer will change code further away from the source it was created from.

Lastly a packed program could be linked into a stand alone version carrying a minimized BASIC runtime, further complicated the way to create source code again.

All of that was as well version dependent.


P.S.: Sure about using Windows 7?

1
  • 1
    You can of course LIST* to a file, which gives you the program's source code.
    – tofro
    Apr 27, 2021 at 5:59
0

Well, I have to dig out my coco in the seller Somewhere. I also notice that there is a java Emulator.

I will install it on ubuntu. I included the link.

1
  • Both VCC and XRoar emulators run under Windows, and there are instructions for running NitrOS-9 on both
    – scruss
    Apr 28, 2021 at 14:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .