Post Reply 
[DB50X on DM32] library programs? (*.48s)
Yesterday, 01:28 PM (This post was last modified: Yesterday 01:30 PM by n1msr.)
Post: #1
[DB50X on DM32] library programs? (*.48s)
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.
Find all posts by this user
Quote this message in a reply
Today, 09:58 PM
Post: #2
RE: [DB50X on DM32] library programs? (*.48s)
If you store a command to the library folder, like e.g.:
Code:

« 1 2 + »
"library:CMD1"
STO

a file CMD1.48s with the program code will be saved in folder library.

Then you can add a new entry in Lib:

Code:

"config:library.csv"
RCL
{"MyLib" {"CMD1" "="}}
+
"config:library.csv"
STO

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.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: n1msr, 2 Guest(s)