IRIS TERMINAL GUIDE
69
Appendix F
sends a character string. On the IRIS, character strings are just null-
sendc()
terminated arrays of characters, so the example code simply sends it exactly as
if it were an array of bytes. Other languages and operating systems may have
to massage strings a bit more before sending them.
The routines to receive arrays include
,
,
,
, and
recOs()
recBs()
resSs()
recLs()
to receive arrays of boolean's, byte's, short's, long's, and float's,
recFs()
respectively. Each takes as a parameter an array for the results. The first thing
each routine does is to receive a long telling the number of items of that type
will be sent. Next comes the graphics escape character, followed by enough
longs (all sent 6 bits at a time) to get the entire array. Every eighth item
(beginning with the first) is followed by a carriage-return (0x0d). After
receiving the carriage-return, the host replies with a '.' for synchronization.
This continues to the end of the array, and the host must be responsible for
writing the exact number of items into memory (for example, if only one byte is
sent, the IRIS will send it as the first of a long, and the host must write exactly
one byte into the user's array).
F.11 Examples
This section includes a number of examples against which the routines above
can be checked.
IEEE Format
Following are a number of floating point numbers expressed in IEEE floating
point format.
1
1. "A Proposed Standard for Binary Floating Point Arithmetic", Computer, March, 1981.
Version 1.3
Need help?
Do you have a question about the IRIS Series and is the answer not in the manual?