[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help ME! Apple IIc



On Sun, 28 Dec 1997 22:22:48 GMT, mike_malek@hotmail.com (Mike Malek)
wrote:

>Do you program and if you
>do, how do you use a word processor on my Apple II (I have several) to
>save as a BASIC program.  Dennis K. told me about saving the file,
>exiting to ProDOS and then EXECuting the file and SAVEing it to
>memory?  Other way?  Thanks a lot!

One neat way that I learned in comp.sys.apple2.programmer a couple
months ago is to copy BASIC.SYSTEM to a sub-directory and save your
program that you typed in your word processor to this same directory
with the filename STARTUP.  Then quit the word processor and start up
the BASIC.SYSTEM that you put in the sub-directory.

This will automatically EXEC the program you are working on.  If you
get any errors while it EXECing (before you get a flashing cursor by
the Applesoft "]" prompt) then you need to type BYE and go back to
your word processor because you've typed something wrong.

If the EXEC works with no errors, you can run the program to test it.
If it works the way you want, you can save it to wherever you want
with whatever filename you want.  If it needs more work, type BYE and
run your word processor again to add or change things.

As an example, here is a way you could set up a booting ProDOS disk
that contains your Applesoft development environment.  In this example
I will use the filename EDIT.SYSTEM to denote your word processor.  If
you are going to use AppleWriter or something similar, you must rename
it so that the filename ends in .SYSTEM.

Format a ProDOS disk, give it a name of DEV and copy the following
files to the disk in the same order that they appear below.

  PRODOS          SYS
  EDIT.SYSTEM     SYS (or whatever your word pro is called; see above)
  BASIC.SYSTEM    SYS

When you boot this disk it will start up your word pro.  You can then
either load a previously saved STARTUP file from this disk or write a
new one and save it to this disk.

When you quit the word pro you will do one of two things.  If you are
running a newer version of ProDOS, you will get a menu with
EDIT.SYSTEM and BASIC.SYSTEM listed.  Choose BASIC.SYSTEM and you will
EXEC the program you are working on and you can then RUN it to test
it.

If you are running an older version of ProDOS, you will have to type
in the name of your development disk, DEV in the example above and
press RETURN then type in BASIC.SYSTEM and press RETURN.

If you want to return to editing your program in the word pro, either
reboot or type BYE and press RETURN.  Following the steps above for
quiting from the word pro but use the name of your word pro instead of
BASIC.SYSTEM.  In this example it would be EDIT.SYSTEM.

Remember that if you make any changes to the program while in
Applesoft, you will not be changing the program that your word pro
loads.  If you make changes in Applesoft and want to keep them before
going back to the word pro for more editing type in the following line
and type RUN followed by the RETURN key.

0 POKE 33,33:PRINT CHR$(4);"OPEN STARTUP":PRINT CHR$(4);"WRITE
STARTUP":LIST 1-63999:PRINT CHR$(4);"CLOSE":TEXT:END

This post has become a lot longer than I had intended but I hope the
method is clear to you.  If not, let me know and I'll help as much as
I can.  I think I might just work on this description a little more
and see if someone wants to publish a poor man's Applesoft editor
article.

=== I've had enough SPAM.  Cut the obvious from my address to email me. ===