Post Reply 
nonpareil-0.79 and HP41 modules
01-19-2021, 08:56 AM (This post was last modified: 01-19-2021 08:57 AM by hmilz.)
Post: #5
RE: nonpareil-0.79 and HP41 modules
Hi Albert,

(01-18-2021 08:55 PM)Albert Chan Wrote:  I am happy that https://github.com/achan001/MAPM-5 got used in your project.

Yes - I was looking for a suitable decimal library and MAPM appeared to be the most suitable one. Also, it compiled out of the box using gcc-arm 9.2.1. Thank you for picking up Mike's work after his passing!

(01-18-2021 08:55 PM)Albert Chan Wrote:  Actually, "alternative" is much faster than doing MAPM -> string -> int.
m_apm_to_double(x) is fast, *and* with correct rounding.

Certainly. It only has one downside in that double32 does not provide more than, say, 6 or 7 significant digits, so I can't use it e.g. for OCT/DEC conversion with more than this many digits.

The downside to moving to Nonpareil and stock HP-41 ROMs would be to ditch MAPM and hence lose the better precision. But looking at the Nonpareil code more throughly, I am not sure if I'll be able to carve out all the thread and Gtk stuff. The idea would be to have NP as a static library so to speak because there is no such thing like threading in an embedded Arduino environment per se. Maybe ArduinoThread would help but using NP looks like a lot of work. I think the NP-41 guys must have done something like this but they did not release any code, and the project looks stale now. So if someone could help converting NP to library that would be nice!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
nonpareil-0.79 and HP41 modules - hmilz - 01-17-2021, 04:54 PM
RE: nonpareil-0.79 and HP41 modules - hmilz - 01-19-2021 08:56 AM



User(s) browsing this thread: 1 Guest(s)