Oldprt; Openio - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Input/Output: None
See also:
CONT, HALT, KILL

OLDPRT

Type:
Command
Description: Modifies the remapping string in the reserved variable PRTPAR so that the extended character
set of the calculator matches that of the HP82240A infrared printer.
To cancel OLDPRT character mapping, purge the PRTPAR variable. To print a string
containing graphics data, disable OLDPRT.
...µ
Access:
See also:
CR, DELAY, PRLCD, PRST, PRSTC, PRVAR, PR1

OPENIO

Type:
Command
Description: Open I/O Port Command: Opens a serial port using the I/O parameters in the reserved variable
IOPAR.
Since all hp49g+/hp48gII Kermit-protocol commands automatically effect an OPENIO first,
OPENIO is not normally needed, but can be used if an I/O transmission does not work.
OPENIO is necessary for interaction with devices that interpret a closed port as a break.
OPENIO is also necessary for the automatic reception of data into the input buffer using non-
Kermit commands. If the port is closed, incoming characters are ignored. If the port is open,
incoming characters are automatically placed in the input buffer. These characters can be
detected with BUFLEN, and can be read out of the input buffer using SRECV.
If the port is already open, OPENIO does not affect the data in the input buffer. However, if
the port is closed, executing OPENIO clears the data in the input buffer.
...µ
Access:
Flags:
I/O Device (-33)
Input/Output: None
See also:
BUFLEN, CLOSEIO, SBRK, SRECV, STIME, XMIT
OR
Type:
Function
Description: OR Function: Returns the logical OR of two arguments.
When the arguments are binary integers or strings, OR does a bit-by-bit (base 2) logical
comparison.
• An argument that is a binary integer is treated as a sequence of bits as long as the current
wordsize. Each bit in the result is determined by comparing the corresponding bits (bit
bit
) in the two arguments as shown in the following table:
2
• An argument that is a string is treated as a sequence of bits, using 8 bits per character (that is,
using the binary version of the character code). The two string arguments must be the same
length.
When the arguments are real numbers or symbolics, OR simply does a true/false test. The result
is 1 (true) if either or both arguments are nonzero; it is 0 (false) if both arguments are zero. This
test is usually done to compare two test results.
3-114 Full Command and Function Reference
OLDPRT
OPENIO
bit
1
0
0
1
1
bit
bit
OR bit
2
1
0
0
1
1
0
1
1
1
2
and
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents