The Museum of HP Calculators


DICE for the HP 42s

This program was written by Richard Garner and is used here by permission.

This program is supplied without representation or warranty of any kind. The author and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

The Program was written to allow multiple die roles in various roleplaying games such as D&D, GURPS, Warhammer, etc..

Using the program

Once inside the program menu just enter the number of dice that are to be rolled and them press the key that corresponds to the die to be rolled.

The Program

LINE    KEYS
000  { 158-Byte Prgm }
001   ▶LBL "DICE"
002    ASSIGN "D4" TO 01
003    ASSIGN "D6" TO 02
004    ASSIGN "D8" TO 03
005    ASSIGN "D10" TO 04
006    ASSIGN "D12" TO 05
007    ASSIGN "D20" TO 06
008    ASSIGN "PD" TO 07
009    SF 27
010    STOP
011   ▶LBL "D4"
012    STO 01
013    4
014    STO 00
015    GTO 01
016   ▶LBL "D6"
017    STO 01
018    6
019    STO 00
020    GTO 01
021   ▶LBL "D8"
022    STO 01
023    8
024    STO 00
025    GTO 01
026   ▶LBL "D10"
027    STO 01
028    10
029    STO 00
030    GTO 01
031   ▶LBL "D12"
032    STO 01
033    12
034    STO 00
035    GTO 01
036   ▶LBL "D20"
037    20
038    STO 00
039    GTO 01
040   ▶LBL "PD"
041    100
042    STO 00
043   ▶LBL 01
044    RAN
045    RCL× 00
046    1
047    +
048    IP
049    STO+ 02
050    DSE 01
051    GTO 01
052    RCL 02
053    CLRG
054    TONE 9
055    STOP
056    END

Variables

None

Go back to the software library
Go back to the main exhibit hall