RPN Advanced 42 manual · Chapter 8 of 18
ALPHA mode and names
Type letters with the top-row menu keys, build variable names and labels, and use the ALPHA register.
8.1Turn ALPHA mode on and type letters#
Press shift ENTER to turn ALPHA mode on. The display shows a cursor and the top row now offers six groups of letters: ABCDE, FGHI, JKLM, NOPQ, RSTUV and WXYZ. Press the top-row key of the group, then the key of the letter inside that group.


- ⇧ALPHAENTER (ALPHA)
- LN (group R S T U V)
- 1/x (second letter, S)
Type a short word
Turn on ALPHA and type B (A group, second key), then S (R group, second key).
⇧ALPHAENTERΣ+1/xLN1/x

BS_Digits and symbols
The digits type digits. In ALPHA mode the swap key types a space and the add key a plus sign.
⇧ALPHAENTERΣ+Σ+42+

A42+Lowercase letters
Press shift before the letter key to get lowercase.
⇧ALPHAENTERΣ+⇧Σ−Σ+

a_8.2Edit and leave ALPHA mode#
← deletes the last character. ENTER or EXIT leaves ALPHA mode. If you are already in the middle of a group, EXIT first goes back to the group list.
Delete a character
Type AB, then press backspace.
⇧ALPHAENTERΣ+Σ+Σ+1/x←

A_8.3The ALPHA register and AVIEW#
Text you type in ALPHA mode away from a prompt goes to the ALPHA register, which holds up to 44 characters. Show it with AVIEW from the PGM.FCN menu (shift 3, fifth key). Typing again after leaving starts a new text. Programs use the register to show messages with AVIEW or PROMPT.
Type and show a message
Turn on ALPHA and type HI, then ENTER.
⇧ALPHAENTER1/x√x1/xLOGENTEROpen PGM.FCN and press AVIEW (fifth key).
⇧PGM.FCN3LN

HI8.4Work with text: ASTO, ATOX, XTOA, POSA, ALENG, AROT, ASHF#
Text can be stored and taken apart. In ALPHA mode, shift STO is ASTO: it stores the first six characters of the ALPHA register in a register or variable as ALPHA data, and RCL brings that text back onto the stack (it shows in quotes). Shift RCL (ARCL) appends a value, or stored text, to the ALPHA register. Arithmetic on text gives Alpha Data Is Invalid.
Store text in a register
Turn on ALPHA, type HELLO, then shift STO (ASTO) 01.
⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/x⇧COMPLEXSTO01Recall register 01.
RCL01

x: "HELLO"The other text functions run by name (XEQ, shift ENTER, the name, ENTER) or from CATALOG ▸ FCN, and in programs:
| Function | What it does |
|---|---|
| ALENG | Puts the number of characters in ALPHA into X. |
| ATOX | Removes the first character of ALPHA and puts its character code in X (0 when ALPHA is empty). |
| XTOA | Appends the character whose code is in X; with text in X, appends the text; with a matrix, each element. |
| POSA | Finds the character code (or the text) in X inside ALPHA: X becomes its position, counting from 0, or −1. |
| AROT | Rotates ALPHA by X characters: to the left when X is positive, to the right when negative. |
| ASHF | Removes the first six characters of ALPHA. |
| AON / AOFF | Turn ALPHA mode on or off from a program. |
Count the characters
Type HELLO in ALPHA, then XEQ ALENG.
⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/xENTERXEQ⇧ALPHAENTERΣ+Σ+√x√xΣ+LNLOGΣ+1/x1/xENTER

x: 5.0000Character code of the first letter
Type ABC, then XEQ ATOX: A is code 65, and ALPHA keeps BC.
⇧ALPHAENTERΣ+Σ+Σ+1/xΣ+√xENTERXEQ⇧ALPHAENTERΣ+Σ+LN√xLOG1/xXEQ1/xENTER

x: 65.0000Append a character by its code
Type AB, key 67 (the code of C), XEQ XTOA, then AVIEW.
⇧ALPHAENTERΣ+Σ+Σ+1/xENTER67XEQ⇧ALPHAENTERXEQ1/xLN√xLOG1/xΣ+Σ+ENTER⇧PGM.FCN3LN

ABCFind a letter
Type HELLO, key 76 (L), XEQ POSA: the first L is at position 2.
⇧ALPHAENTER1/x√xΣ+LN√x√x√x√xLOG1/xENTER76XEQ⇧ALPHAENTERLOG√xLOG1/xLN1/xΣ+Σ+ENTER

x: 2.0000Rotate the text
Type ABCDE, key 2, XEQ AROT, then AVIEW.
⇧ALPHAENTERΣ+Σ+Σ+1/xΣ+√xΣ+LOGΣ+LNENTER2XEQ⇧ALPHAENTERΣ+Σ+LNΣ+LOG1/xLN√xENTER⇧PGM.FCN3LN

CDEAB8.5Names for variables and labels#
At prompts that accept a name (STO, RCL, XEQ, GTO, LBL, VIEW, INPUT, CLV and others) press shift ENTER to start ALPHA, type the name, and press ENTER. For MVAR and DIM the ALPHA mode starts automatically. Names are limited to seven characters.
HP-42S is a trademark of HP Inc.. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by HP. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.