| Click here to select a new forum. |
| DOS 3.3 Commands? |
Posted by: dcr on 2024-03-21 13:38:06 Okay, first, I am trying this in the Virtual ][ emulator and not on an actual Apple IIe. But, I think it should function pretty much the same.
I have a program on a (virtual) diskette. I can use "LOAD filename" to load the program into memory and then "LIST" will show the program. But, it scrolls through until the end with no pauses. Wasn't there a command that would fill the screen and then pause to wait for a keypress before showing the next portion? That way, you could go through the code one screen at a time instead of running through the whole thing and only seeing the end.
I've searched online but the sites I've found don't even show the LIST command.
Sad thing is that I used to have these things memorized and could fly through stuff with the keyboard commands. |
Posted by: dcr on 2024-03-21 13:42:32 Follow-up dumb question . . .
Can I load a program into memory, and then edit a specific line of the program (and then run it) without saving to disk? (I don't know if it can save to the virtual disk but I don't need to save it anyway.) If so, how?
I hate that I don't even remember any of this anymore. |
Posted by: NJRoadfan on 2024-03-21 14:33:41 Just type the line number you want to change and the revised line of code. You can list a specific section of your program by specifying the line number range ex: LIST 10-20.
The original Applesoft BASIC manual is here: https://mirrors.apple2.org.za/Apple...oft II BASIC Programming Reference Manual.pdf
Later machines running ProDOS have slight differences. |
Posted by: dcr on 2024-03-21 17:24:57
Just type the line number you want to change and the revised line of code. You can list a specific section of your program by specifying the line number range ex: LIST 10-20. THANK YOU!
I had obviously forgotten that.
Worked for what I needed, aside from cursing my teenage self for stuffing a bunch of code on the one line that was otherwise the easiest to edit to do what I needed. |
Posted by: NJRoadfan on 2024-03-21 17:37:43 The Apple II machines have "screen" editors like the C64 has, where you can LIST a line and edit it. You have to hit ESC and move the cursor to the line you want to change. |
Posted by: dcr on 2024-03-21 19:52:13 Thanks. Maybe I knew that too back in the day. |
Posted by: joevt on 2024-03-21 22:04:34 You can list basic programs to a text file:
https://stason.org/TULARC/pc/apple2...-save-a-BASIC-program-in-ASCII-text-form.html
Of course, the text file will be larger than the BASIC file because the tokens are converted to strings. You can use the EXEC command to enter the lines of the text file.
I wrote a classic Mac OS app to list BASIC files (AppleSoft BASIC or Integer BASIC). It can list a single BASIC file or all BASIC files in a directory. It checks starting address, line lengths and offsets, and looks for extra binary data. Unzip the attached file on a modern Mac. The .ยต file is a CodeWarrior Pro 4 project file (there's also an older project file for earlier CodeWarrior versions). The .z file is a resource file containing STR# resources for all the AppleSoft and Integer Basic tokens. The .p files are Pascal. |
| 1 |