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

Re: ADTPro problem - non-SSC serial cards supported?



David Wilson wrote:
On Sep 11, 3:51 pm, j...@magrathea.plus.com (Jim) wrote:


yes? Because if I write this code:

10 ?CHR$(4)"PR#3"
20 ?CHR$(4)"IN#2"
30 GET A$
40 PRINT A$;
50 GOTO 30

then it stays in 40col mode until I hit a key on the PC keyboard,
whereupon it goes into 80col, displays the key, then nothing more.

Do I need to initialise the 80col card in some other way? TEXT:HOME
perhaps?


Line 10 tells the system to redirect output to the 80 col init routine
Line 20 tells the system to redirect input from the serial card init
routine
Line 30 calls the serial card init routine and returns when a
character arrives
Line 40 sends a character to the 80 col init routine which finally
switches from 40 to 80 col mode AND installs the 80 col input handler
overwriting line 20's effect..

You need to do some output between line 10 and 20. eg:

 15 PRINT

Very nice, David!

I was thinking along similar lines, but thought that the carriage
return emitted at the end of line 10 would do the job--apparently
not!  I presume it is eaten by DOS's command processor.

-michael

NadaPong: Network game demo for Apple II computers!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."