List Menu - HP -28S Quick Reference

Hide thumbs Also See for HP-28S:
Table of Contents

Advertisement

Note that the command does not accept binary numbers!
NUM
Return ASCII code of the first character of the string in stack level 1 as a real
number.
→LCD
Writes the data of the given string into the LCD pixel memory.
Each characters inside the string represents 8 pixel. Bit0 of the first character
represents the pixel in the very top left corner. Bit1 of the first character the
pixel below etc. Bit0 of the 2
the very top of the display.
If the string does not contain enough characters to fill the entire LCD screen
then the remaining pixels are unchanged.
LCD→
Returns a 548 byte string representing the pixel data of the LCD screen.
Each character receives the data of an 8 pixel-column, starting with the
column in the top left corner of the LCD screen.
The screen itself is 137x32 pixel in size.
POS
Seach for the string given in level 1 within the string in level 2 and return the
position where the string was found or 0 if not found.
"This is a string" "str" POS returns 11.
SUB
Returns a substring of the string in level 3. The numbers in level 2 and level 1
specify the start and end position of the substring (counting from 1).
"This is a string" 3 7 SUB returns "is is".
Start and end positions cannot be specified in a length-2 list.
SIZE
Returns the length of the string.
DISP
Display the string in level 2 on the LCD display line given in level 1 (1...4). See
CONTROL Menu.
General
• A list is a sequence of arbitrary objects which need not be of the same
type.
• Lists are entered by using curly brackets:
{1 (2,3) 5 "A" Q [7 8] {a b c}}.
A lists may be put inside another list.
• In order to avoid evaluation of names when they are typed on the
command line to be put in a list they can be entered in single quotes or
with Alpha-Mode turned on. The quotes are removed when the list is
created.
+
Used to append objects of any type to a list:
"Hi!" {1 2 3} + returns {"Hi!" 1 2 3}
{3 4 5} [7 8 9] + returns {4 5 6 [7 8 9]}
{1 2 3} {a b c} + returns {1 2 3 a b c} rather than
{{1 2 3} a b c}
→LIST
Combine n elements on stack levels 2...n+1 into a list.
n must be given on stack level 1.
Some of the list components my be lists themselves:
{1 2 3} {a b c} 2 →LIST returns {{1 2 3} {a b c}}
LIST→
Splits a list into individual elements on the stack. The length of the list is
returned on stack level 1.
PUT
Put an element into a list at the given position. Similar to PUT for matrices.
{1 2 3} 2 'X' PUT puts the element X into the list at position 2 and
HP-28S
nd
character represents the 2

LIST Menu

13
nd
pixel from left at

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents