[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How send Applesoft program to PC-DOS
D.Mc (dmc@cyburban.com) wrote:
: How do I get an Applesoft program into a PC-DOS computer in text format?
: I need a quick and easy way. Both computers have modems, but I have no
: terminal program for the Apple.
Do you have a serial port on the Apple? If so, you may be in luck...
(Remember, Apple ]['s *except* the //c and IIgs do not have serial ports
built in...you have to have the card!)
First, Applesoft programs are stored in tokenized format. You need to add
the following line to the beginning of the program:
0 PRINT CHR$(21):POKE 33,33:PRINT CHR$(4);"OPEN PROGRAM.TXT":PRINT
CHR$(4);"WRITE PROGRAM.TXT":LIST 1,63999:PRINT CHR$(4);"CLOSE":END
If you run that program, it will convert the program to plain text. Then
you can use a comm program to send the detokenized source file over the
null-modem.
Oh. Wait a minute, I forgot...you don't have a comm program for the ][.
Well, maybe that will help. Okay, do this instead. Make sure that your
serial ports are connected together, and run the comm program on your PC.
Now, for our purposes, lets assume you have the serial card in Slot #2.
Force the PC into terminal mode.
Make sure the ][ is displaying a *40-column* screen.
Now, try typing "IN#2" on the ][. Type something on the PC. It should
appear on the Apple. (Cool, ain't it?!)
In fact, try typing "PR#2". On either computer. Now, you should get an
Applesoft prompt on your terminal screen! In fact, you can use the PC
comm program as a keyboard for your ][!
All right, at this point, you should have data flying back and forth
between the two machines. On the ][, type "POKE 33,33".
Now, on the PC, tell your comm program to start a text capture. Tell it
to add line feeds after carriage returns.
On the ][, load the BASIC program, and type LIST. The program listing
will appear on the Apple screen and be dumped into the PC comm program's
capture buffer.
To break communications, type "IN#0" and "PR#0" on the ][.
Good luck! Let me know if it actually works! 8-)
--Dave Althoff, ][.
--
/-\ _ _ *** Thanks for a great season!!! ***
/XXX\ /X\ /X\_ _ /XX\_ _ _ _____
/XXXXX\ /XXX\ _/XXXX\_ /X\ <#&====\ /X\ /X\ /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_o==oXXXX\__/XXX\_/XXX\_/\_/XXXXXX