HP-41Z module ready (at last)


You can stop holding your breath :) The module is ready and good to go to the daylight. I bet you thought it'll never be finished (I for one did!) but sure enough it's reached the "good enough" stage.

A quick recap of its highlights:

- a 4-level complex stack, complete for all the functions and routines.

- simplified/optimized complex displaying. It now uses the "RE+jIM" notation, more legible with real-life numbers (with EEX part)

- The displaying is nor rounded, but Integer numbers will display without trailing zeros in the decimal part. So you quickly tell if it's integer or not (and saves real state in the display).

- common factor is extracted when Re(z)=Im(z), and not zero - somehow I found slightly misleading the line "0(1+j)"

- 8k module, holding more than 120 complex math and complex stack functions, plus about 20 more buffer-related functions, 98% of them in MCODE

- programmable promptimg memory functions - with IND addressing support in run time

Already submitted to TOS, should hopefully be ready for download in a few days time.

Thanks to those who provided suggestions and actual coding, real MCODE programmers out there. Peter, Eric, Egan, Howard... In particular Doug Wilder for his implementation of the programable prompting routine, and Håkan Thörngren for his coaching on the buffer implementation. It would have taken them just a fraction of the time it took me to put it together had they wanted to!


Edited: 20 Sept 2009, 4:05 a.m.


Thanks. I look forward to using it.


Congratulations on implementing all those improvements! I'm sure the programming wasn't a trivial exercise. I'd like to differ with you on one point however. I almost certainly couldn't have implemented those ideas in mcode anywhere near as fast as you could. The only mcode program I ever wrote was a simple initializer for Hepax memory. Stack and buffer manipulation like you achieved would have taken me a long, long time to write.

Congratulations again!



I've found that writing microcode for HPs goes much more quickly when I've got a simulator that lets me single-step through it, set breakpoints, etc. Otherwise debugging is extremely tedious.

I have no idea whether Ángel Martin uses such a thing, though.


I wish! Is there one available? That'll sure make my day... you're right it's tedious, but also painful and sooo easy to make mistakes. Yet it's as addictive as any programming language can be, maybe even mode.


Of course there are simulators with built-in debuggers.

One of them is part of SDK41 from Warren Furlow,

and the other is part of Emu41 from J.-F. Garnier;-)




Angel, now I'm even more impressed! You did all of your fabulous MCODEing without Warrens m41? It is a most wonderful tool that allows single stepping of MCODE and many more easy features. I've had to learn how to use it myself and wrote a little expanded manual for it with examples etc which you can find at TOS as well.




Currently posted & available for download. Feedback is appreciated... hope you enjoy it.

Edited: 24 Sept 2009, 9:26 a.m.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Last call for 41Z/SandMath Overlays... plus new ones Ángel Martin 0 1,237 12-12-2013, 10:27 AM
Last Post: Ángel Martin
  Sandmath/41Z overlays Bernd Grubert 1 1,094 10-29-2013, 03:32 PM
Last Post: 'Angel Martin
  41Z / SandMath Overlays: Ready at last! Ángel Martin 3 1,417 07-23-2013, 01:30 PM
Last Post: Ángel Martin
  Poll: SandMath and 41Z Overlays anyone? Ángel Martin 20 4,160 05-20-2013, 04:13 PM
Last Post: aurelio
  WP34s Ready to Flash My 30b, but no cable. Barry Reeves 10 2,106 11-20-2011, 03:46 PM
Last Post: gene wright
  New version of 41Z - adds ZSTO Math Ángel Martin 0 592 10-21-2011, 02:21 PM
Last Post: Ángel Martin
  Complex Cubic Equation - 41Z Version Ángel Martin 3 1,017 10-19-2011, 04:23 PM
Last Post: Ángel Martin
  Sandmath-II and 41Z - questions to Angel Vincent Weber 19 3,827 10-04-2011, 12:21 PM
Last Post: Monte Dalrymple
  Updated SandMath-II and 41Z modules Ángel Martin 6 1,638 09-07-2011, 07:20 PM
Last Post: Gerson W. Barbosa
  41Z Overlay For 41CL Mark Hardman 14 2,791 06-17-2011, 02:03 AM
Last Post: Ángel Martin

Forum Jump: