[DB50X on DM32] library programs? (*.48s) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: [DB50X on DM32] library programs? (*.48s) (/thread-22779.html) |
[DB50X on DM32] library programs? (*.48s) - n1msr - 11-27-2024 01:28 PM I have not succeeded in adding a program to the library of the DB50X running on a Swiss Micros DM32. I am running the latest (v0.8.6) version of DB50X. I could not find a demo or explicit instructions so I simply added to what is included in the release of v0.8.6 of DB50X in the Github repository. The [RPL] program is named RCH.48s (it's the HHC 2011 programming contest winner). See the listing below. When I did as described below (steps 1 and 2), I see the RCH program in the library menu under "Performance", but if I try to run it, I get this error: XlibName error: Invalid or unknown library entry 1. I edited the config/library.csv file in the "Performance" [menu] section like this: "Performance" "NQueens", "=" "SumTestWithFunction", "=" "SumTestWithLoop", "=" "Recursion", "=" "UnitsBenchmark", "=" "RCH", "=" 2. I copied RCH.48s from my PC via the USB cable to library/RCH.48s on the DM32 (where the library programs are that come with the release). Note: the program requires a string of any length, e.g. "AABBBCDEF", to run. I looked in the Help documentation on Github. There are lots of references to *library*, but I couldn't see this error or instructions on how to add to the library. Thanks to Christophe and those who have contributed to this amazing project. Program: « 0. DUP 5. SQ NDUPN 2. + ROLL DUP SIZE DUP R→I UNROT 1 SWAP START DUP NUM 61. - DUP PICK 1. + SWAP 1. - UNPICK TAIL NEXT DROP 1 1. "" NUM START UNROT SWAP R→I DUP2 - UNROT COMB ROT * NEXT + » Mark. RE: [DB50X on DM32] library programs? (*.48s) - raprism - Yesterday 09:58 PM If you store a command to the library folder, like e.g.: Code:
a file CMD1.48s with the program code will be saved in folder library. Then you can add a new entry in Lib: Code:
It is also possible to save files in a subdirectory ("library:MyLib/CMD1"}, if this directory exists. If the command is not in the library folder or has a filename that does not correspond to the command, then you have to substitute "=" with the path (like "library:MyLib/CMD1"). All actions can be also done by creating the command file and editing the config/library.csv file directly. |