free42 Custom Menus
Author: | Mitch Richling |
Updated: | 2025-10-08 15:00:45 |
Copyright 2025 Mitch Richling. All rights reserved.
Table of Contents
1. Metadata
- Connonical URL for this file: https://richmit.github.io/hp42/custom.html
- org-mode file source for this file: https://github.com/richmit/hp42/blob/master/src/custom.org
- 42s code listings in this file: https://github.com/richmit/hp42/blob/master/src_42s/custom/custom.hp42s
- GitHub repository: https://github.com/richmit/hp42
2. My Custom Menu
Instead of using the CUSTOM menu for my programs, I use a program that makes a nice menu. I then put this program in the CUSTOM menu.
Menu | Function/Program | |
---|---|---|
SFUN | https://richmit.github.io/hp42/math.html | |
MATH:POLY | https://richmit.github.io/hp42/math.html | |
MATH:FUNC | FMENU | https://richmit.github.io/hp42/pgmforfun.html |
MATH:VEC3 | https://richmit.github.io/hp42/math.html | |
MATH:NLA | https://richmit.github.io/hp42/math.html | |
BASE | https://richmit.github.io/hp42/base.html | |
PHIL | https://richmit.github.io/hp42/phil.html | |
MEAS | https://richmit.github.io/hp42/meas.html | |
DATE | DMENU | https://richmit.github.io/hp42/date.html |
CONS | https://richmit.github.io/hp42/cons.html | |
UNIT | https://richmit.github.io/hp42/unit.html | |
SIPFX | https://richmit.github.io/hp42/unit.html | |
UPROP | https://richmit.github.io/hp42/uprop.html |
2.1. Menu Code
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (CUST) @@@@ DSC: Auto-generated menu program LBL "CUST" LBL 01 @@@@ Page 1 of menu CUST CLMENU "SFUN" KEY 1 XEQ "SFUN" "MATH" KEY 2 GTO 03 "BASE" KEY 3 XEQ "BASE" "PHIL" KEY 4 XEQ "PHIL" "MEAS" KEY 5 XEQ "MEAS" "DATE" KEY 6 XEQ "DMENU" KEY 7 GTO 02 KEY 8 GTO 02 KEY 9 GTO 00 MENU STOP GTO 01 LBL 02 @@@@ Page 2 of menu CUST CLMENU "CONS" KEY 1 XEQ "CONS" "UNIT" KEY 2 XEQ "UNIT" "SIPFX" KEY 3 XEQ "SIPFX" "UPROP" KEY 4 XEQ "UPROP" KEY 7 GTO 01 KEY 8 GTO 01 KEY 9 GTO 00 MENU STOP GTO 02 LBL 03 @@@@ Page 1 of menu MATH CLMENU "POLY" KEY 1 XEQ "POLY" "FUNC" KEY 2 XEQ "FMENU" "VEC3" KEY 3 XEQ "VEC3" "NLA" KEY 4 XEQ "NLA" KEY 9 GTO 01 MENU STOP GTO 03 LBL 00 @@@@ Application Exit EXITALL RTN @@@@ Free labels start at: 4
3. Create system CUSTOM
Menu
This program creates a CUSTOM
menu.
KEY# | ASSIGNment | Only On |
---|---|---|
1 | CUST | |
2 | ||
3 | ||
4 | ||
5 | EEPFX | |
6 | ¦¦ | |
7 | VirtV | DM42 |
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | SST | |
14 | SST↑ | |
15 | SST→ | |
16 | GTO | |
17 | XEQ | |
18 | VIEW | DM42 |
18 | PRV | !DM42 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (MKCM) @@@@ DSC: Autogenerated menu program LBL "MKCM" CLKEYS ASSIGN "CUST" TO 01 ASSIGN "EEPFX" TO 05 ASSIGN "||" TO 06 SF 25 RCL "GrMod" FS?C 25 ASSIGN "VirtV" TO 07 ASSIGN "SST" TO 13 ASSIGN "SST↑" TO 14 ASSIGN "SST→" TO 15 ASSIGN "GTO" TO 16 ASSIGN "XEQ" TO 17 SF 25 RCL "GrMod" FS?C 25 ASSIGN "VIEW" TO 18 SF 25 RCL "GrMod" FC?C 25 ASSIGN "PRV" TO 18 RTN
4. Set some of my personal prefrences
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (SPREF) @@@@ DSC: Set some of my personal prefrences @@@@ IN: N/A @@@@ OUT: N/A @@@@ TST: free42_3.0.2 @@@@ BUG: This sets some of *my* favorite prefrences. You might not like them. ;) @@@@ UPD: 2021-04-05 LBL "SPREF" FUNC 00 ALL @@@@ Display all digits RECT @@@@ Complex number format RAD @@@@ Angle mode CPXRES @@@@ Complex results RDX. @@@@ Use periods KEYASN @@@@ Custom menu DECM @@@@ Make sure we are in decimal mode 64 @@@@ WSIZE FS? 78 BSIGNED @@@@ Unsigned integer mode FS? 79 BWRAP @@@@ Don't wrap integers DMY @@@@ D.MY mode CLK12 @@@@ AM/PM mode 4STK @@@@ Four level stack EXITALL @@@@ Exit menus RTN END