Comments (4)
You're giving AppleCommander a bit too much credit. ;-)
The file in Linux is a text file. When you placed it onto the disk, ac
does not do any processing of it and essentially shoved a text file into what ProDOS thinks is a BAS
program.
When the -e
flag is used, ac
tries to export the program in a sensible manner. For BAS
it decodes the tokenized Applesoft program and writes it as text on your machine. Since it was already text, it (obviously) doesn't detokenize very well.
When the -g
flag is used, ac
just pulls the raw data and writes it to your machine as-is.
I recall seeing or reading about a program that can tokenize a text file, but I'm drawing a blank, unfortunately... if I can recall/find it in the next few days, I'll post a link!
from applecommander.
both "CiderPress" (https://github.com/fadden/ciderpress/) and "diskm8" (https://github.com/paleotronic/diskm8/) have an "import BAS from" text-tokenizing feature.
i think it would be cool to have it implemented in AppleCommander as CiderPress is GUI based and Windows-only (but works ok under wine) and diskm8 has its own - imvho serious - issues (see https://github.com/paleotronic/diskm8/issues) as of now.
can you flag this issue as a feature request ?
thank you! :-)
from applecommander.
Absolutely! Is this something you wanted to work on yourself? I'm more than willing to accept submissions.
I'm thinking that as a first stab, the assumption is that the AppleSoft code is "well formed". We don't need to mash our code into a single line any more, so spaces (literally!) aren't at a premium any more. I see that there are notes about special handling for AT
/ATN
(and more, I think). Requiring spaces between stuff would probably greatly simplify the effort.
from applecommander.
I did commit some prototype code the repository. General usage pattern is with the -bas
flag following the same pattern that ac
uses. I have done nothing with the GUI at this time ... not really certain it's needed there (thinking this is more a for development and likely ending up in scripts).
Example run:
$ cat test.bas | ac -bas dos.dsk test
Uploaded a Beta copy. Note that I had to GZip it to make GitHub happy!
from applecommander.
Related Issues (20)
- DOS header is missing HOT 6
- Doesn't adapt to dark/light mode changes while running HOT 3
- Some toolbar icons not readable in dark mode HOT 3
- Import Wizard doesn't disable Edit and Remove buttons after editing item; crashes when clicked HOT 3
- Applesoft BASIC programs fail to decode if they run up to the edge of buffer
- Windows should have a reasonable minimum size HOT 1
- Imported file detected as type BIN HOT 1
- acx format with DOS 3.3 source disk doesn't setup free sectors correctly
- acx copy --recursive does not copy files correctly. HOT 4
- For each wizard, make all pages the same height HOT 1
- Handle confirmation when exiting with modified disk contents HOT 1
- Windows should have a reasonable minimum size (continuation)
- Corrupted exports HOT 2
- Problems reading nib disk images HOT 2
- Disk image wizard doesn't honor nibble ordered setting
- The track (255) and sector (15) do not match the disk image size. HOT 1
- Crash when viewing invalid files
- Cannot import text files: File does not appear to be an Applesoft program HOT 1
- Save button acts as Save As button
- ApplesoftBASIC program truncated when decompiled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applecommander.