Inport - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

inport

Function
Advance the input data from its source
Synopsis
unsigned long inport (addr, size)
void *addr;
unsigned size;
Description
The inport macro moves size bytes of data into the port address specified by
addr when the macro is executed. The value of size can be 1, 2, or 4. This macro
allows inport buffers to receive new data from the defined source. The action
is equivalent to the target program reading from the inport which will advance
the input source.
If no inport exists at the port address, value is read from the the journal
window.
If a port exists at the port address, value is read from the source specified when
the inport was created.
Diagnostics
If an error occurs, inport returns a 0; if inport completes normally, it returns a
1.
Example
Memory Inport Assign Byte 3 Source_Is Data_String
"Hello"
Debugger Macro Call inport(3, 1)
Memory Inport Show 3
Note how H has been moved into the inport.
Chapter 11: Predefined Macros
inport
457

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents