AMOSi:Parallel Input$

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-8/Help_81.AMOS


Waits for a specific number of characters from the parallel port.


d=Parallel Input$(length)

Since the parallel port doesn't have an internal buffer area, your program will halt completely until the characters are successfully received. If the requested bytes haven't arrived after a reasonable amount of time, you'll get a time-out error.


d=Parallel Input$(length ,stop)

stop enters an optional a stop character which will end the transmission the moment it's recieved.