(42S, Free42) Unit Conversion Suite
|
02-05-2018, 02:00 PM
(This post was last modified: 02-05-2018 03:27 PM by Werner.)
Post: #5
|
|||
|
|||
RE: (42S, Free42) Unit Conversion Suite
(edited twice already to fix bugs in the printout ;-)
I'm almost done rewriting this completely, just to see if it could be done. I define each unit category as a matrix. First column is the alpha data; second is the multiplier, in case of TEMP the third column is the additive constant. So eg. TEMP will look like Code: "TEMP" [ 4x3 Matrix ] Then I have a single column matrix with all categories that I call CCAT, so Code: "CCAT" [ 12x1 MATRIX ] Then all we need is a routine that will build a menu (with paging if necessary) out of the first column of a matrix, and treats the item chosen. And so I end up with a single program that can treat as many conversions as you like - just define new matrices as you go along and add categories. The routine is not 100% finished, but it already works as it is, so yes, it can be done ;-). The only drawback is that Free42 does not allow you to export a matrix, only programs. So I'll have to provide a one-shot program that creates the matrices. Here's the current to-be-worked-on version for the interested: Code: >LBL "CONV" No .raw file as yet though. Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)