Difference between revisions of "AMOSi:Open Port"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 17 November 2007

an example can be found on AMOSPro_Examples:Examples/H-6/Help_67.AMOS


Provides a simple way of accessing the various devices connected to your Amiga.


Open Port channel number,"PAR:"

For the Parallel port.


Open Port channel number,"SER:"

For the RS232 (serial) port.


Open Port  channel number,"PRT:"

For the Printer port.


Once you've opened your channel, you can access it using any of the INPUT#,INPUT$,PRINT# or LINE INPUT# commands, just as if it was a normal disc channel.