Chapter 3: Loading and Executing Programs
Accessing Input Ports
Accessing Input Ports
This section shows you how to:
•
•
•
•
To set or alter input port status
• Using the command line, enter:
Memory Inport Assign
Select the size, port address, and input data source; then, press the < Return>
key.
The Memory Inport Assign command assigns a simulated input port and
defines its size, address, and input source. The port address can be any valid
address. The source of input data may be the standard I/O screen, the journal
window, a file, an expression string, or the input or output port buffers.
Examples
To assign address 0x40C as an I/O port (input) of size byte:
Memory Inport Assign Byte 0x40C Source_Is Data_String
"message"
Read operations from the port will access the string containing the word
'message'.
108
Set or alter input port status.
Delete an input port.
Rewind the input file associated with an input port.
Display input port buffer values.