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

[no subject]



PRINT CHR$(4);"PR#";S:REM Where S is the slot number of the interface

simply substitute the command--

PR#S

Under DOS 3.3, this is technically illegal, as it will disconnect DOS and
you will no longer be able to issue commands to the operating system until
you issue a CALL 976.  But that will also keep Uncle DOS from intercepting
your ^D.

That won't work under ProDOS/BASIC.SYSTEM.

Another possibility...How many lines are you using?  Remember, there are
eight lines coming off of the parallel port.  If you are decoding, say,
four lines (that would be values $00-$0F, which would be floors 0-15), you
could leave the fifth line unconnected, and send the values $10-$1F
(16-31).  Those values will have exactly the same effect on the first four
bits, so you can still get to the fourth floor by sending a 20 instead of
a 04...the output on the parallel port will still be %????0100.

Now, from Applesoft, you are stuck with low-bit ASCII, I think, so you
only have seven bits to work with.  But if you only use the 7th bit for
your encoding (to insure that $04 never shows up) you still have 64
discrete values to work with.

Of course, your other option is to write a 6502 routine that will blast
the $04 directly to the parallel interface, bypassing the OS overhead that
is giving you trouble...  8-)

Hope this helps!

--Dave Althoff, ][.

-- 
    /-\        _       _       ***  Thanks for a great season!!!  ***
   /XXX\      /X\     /X\_      _     /X/|_      _     _        _____  
  /XXXXX\    /XXX\  _/XXXX\_   /X\  <#&/XXX\    /X\   /X\      /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_o==oXXXX\__/XXX\_/XXX\_/\_/XXXXXX