Input/Output:

 

 

Level 2/Argument 1

Level 1/Argument 2

Level 1/Item 1

 

 

 

 

 

 

 

{ #n1 #m1 }

{ #n2 #m2 }

 

 

(x1, y1)

(x2, y2)

 

 

 

 

 

See also:

ARC, LINE, TLINE

 

 

 

 

 

 

 

BUFLEN

Command

 

 

Type:

 

 

Description:

Buffer Length Command: Returns the number of characters in the calculator’s serial input buffer

 

and a single digit indicating whether an error occurred during data reception.

The digit returned is 1 if no framing, UART overrun, or inputbuffer overflow errors occurred during reception, or 0 if one of these errors did occur. (The input buffer holds up to 255 bytes.) When a framing or overrun error occurs, data reception ceases until the error is cleared (which BUFLEN does); therefore, n represents the data received before the error.

Use ERRM to see which error has occurred when BUFLEN returns 0 to level 1.

Access: …µBUFLEN

Input/Output:

Level 1/Argument 1

Level 2/Item 1

Level 1/Item 2

 

 

 

nchars

0/1

 

 

 

See also: CLOSEIO, OPENIO, SBRK, SRECV, STIME, XMIT

BYTES

Type: Command

Description: Byte Size Command: Returns the number of bytes and the checksum for the given object. If the argument is a builtin object, then the siz e is 2.5 bytes and the checksum is #0.

If the argument is a global name, then the size represents the name and its contents, while the checksum represents the contents only. The size of the name alone is (3.5 + n), where n is the number of characters in the name.

Access:

MEMORY BYTES

 

( °is the leftshift of the

Nkey).

Input/Output:

 

 

 

 

 

 

 

Level 1/Argument 1

 

Level 2/Item 1

Level 1/Item 2

 

 

 

 

 

 

 

 

obj

#nchecksum

xsize

 

Objects that

 

Example:

decompile identically can have different byte sizes and checksums. For instance,

 

{1}

 

 

 

 

 

and

 

 

 

 

1 'A' STO A {} +

 

 

 

 

both produce lists containing the number 1. However, the first list contains the builtin object 1

 

(for a size of 7.5 bytes), while the second list contains a RAM copy of 1 (for a size of 15.5 bytes).

See also:

MEM

 

 

 

 

 

 

 

 

 

BR

Command

 

 

 

Type:

 

 

 

Description: Binary to Real Command: Converts a binary integer to its floatingpoint equivalent.

330 Full Command and Function Reference

Page 150
Image 150
HP 50g Graphing, 48gII Graphing manual Buflen, Bytes, #n1 #m1 #n2 #m2 X1, y1 X2, y2, Access …µBUFLEN Input/Output, Mem