Post Reply 
Nonpareil status
10-24-2022, 06:31 PM (This post was last modified: 05-18-2023 03:02 AM by brouhaha.)
Post: #38
RE: Nonpareil status
(10-24-2022 04:53 PM)eshazen Wrote:  Next I think I may revive my plan to port at least the woodstock simulator to Z80 assembly, as my compiled C code is a bit slow.

I'm not surprised. When Rich Ottosen and I were building calculator prototypes, we initially used Microchip PIC16 and PIC18 8-bit processors. At that time (mid to late 1990s), the available C compilers produced code that was far too slow, so we did that all in assembly. More recent PIC compilers are better, though for Microchip XC8 one unfortunately must buy a license or subscription to get full optimization. I think it would make sense with that to keep most of the simulation in C, but recode portions of it (especially the arithmetic instructions that work on a range of digits within a word) in assembly. That might also make sense for other 8-bit micros, including the Z80.

Around 2010 we switched from PIC microcontrollers to ARM Cortex-M3, specifically the Energy Micro (now Silicon Labs) EFM32 Gecko and Giant Gecko, and used C code exclusively. At the time, those were the only ARM microcontrollers that had decent memory size and very very low power consumption. (The Atmel AT91SAM7L128 used in the first ARM-based version of the HP-12C was low power, but only had 2K of battery powered RAM.) Rich was pretty skeptical of the low-power claims Energy Micro was making, so before he was willing to lay out a board, I bought the EFM32DK board, which was a rather fancy development board that had built-in current profiling with a graphical LCD display, and was quickly able to demonstrate that the power consumption of our calculators using an EFM32 would be very similar to those using the "XLP" PIC microcontrollers.

Now there are a lot more choices for low-power ARM microcontrollers, including the ATSAM4LC2CA used in the newer HP-12C and the STM32L476 used in recent Swiss Micros calculators. However, I understand the appeal of building projects using old-school microprocessors, as I do a lot of such projects myself.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Nonpareil status - brouhaha - 10-06-2022, 11:31 PM
RE: Nonpareil status - teenix - 10-07-2022, 12:24 AM
RE: Nonpareil status - Thomas Klemm - 10-11-2022, 04:02 PM
RE: Nonpareil status - johanw - 10-12-2022, 03:30 PM
RE: Nonpareil status - Mark H. Shin - 10-12-2022, 10:42 PM
RE: Nonpareil status - brouhaha - 10-13-2022, 05:28 PM
HP--91 and HP-19C progress - brouhaha - 10-15-2022, 02:28 AM
RE: Nonpareil status - teenix - 10-15-2022, 03:21 AM
RE: Nonpareil status - brouhaha - 10-15-2022, 04:17 PM
RE: Nonpareil status - PANAMATIK - 10-15-2022, 02:20 PM
RE: Nonpareil status - brouhaha - 10-15-2022, 04:25 PM
RE: Nonpareil status - Thomas Okken - 10-15-2022, 06:11 PM
RE: Nonpareil status - brouhaha - 10-15-2022, 06:33 PM
RE: Nonpareil status - Joe Horn - 10-15-2022, 07:33 PM
RE: Nonpareil status - brouhaha - 10-15-2022, 08:29 PM
RE: Nonpareil status - teenix - 10-16-2022, 05:50 AM
RE: Nonpareil status - brouhaha - 10-16-2022, 08:43 AM
RE: Nonpareil status - teenix - 10-16-2022, 09:56 AM
RE: Nonpareil status - brouhaha - 10-16-2022, 08:41 AM
RE: Nonpareil status - brouhaha - 10-16-2022, 08:07 PM
RE: Nonpareil status - teenix - 10-16-2022, 10:15 PM
RE: Nonpareil status - brouhaha - 10-17-2022, 04:16 PM
RE: Nonpareil status - teenix - 10-18-2022, 07:40 AM
RE: Nonpareil status - teenix - 10-18-2022, 12:30 AM
RE: Nonpareil status - teenix - 10-18-2022, 11:11 PM
RE: Nonpareil status - brouhaha - 10-20-2022, 05:28 AM
RE: Nonpareil status - Mike T. - 10-20-2022, 08:49 PM
RE: Nonpareil status - Thomas Okken - 10-20-2022, 09:00 PM
RE: Nonpareil status - Mark H. Shin - 10-20-2022, 10:53 PM
RE: Nonpareil status - brouhaha - 10-22-2022, 12:04 AM
RE: Nonpareil status - brouhaha - 10-22-2022, 12:09 AM
RE: Nonpareil status - eshazen - 10-23-2022, 07:40 PM
RE: Nonpareil status - brouhaha - 10-24-2022, 05:18 AM
RE: Nonpareil status - eshazen - 10-24-2022, 04:53 PM
RE: Nonpareil status - brouhaha - 10-24-2022 06:31 PM
RE: Nonpareil status - brouhaha - 10-29-2022, 05:16 AM
RE: Nonpareil status - brouhaha - 11-01-2022, 01:27 AM
RE: Nonpareil status - Mark H. Shin - 11-01-2022, 10:23 AM
RE: Nonpareil status - brouhaha - 11-02-2022, 05:52 AM
97 graphics - brouhaha - 11-04-2022, 05:37 AM
RE: Nonpareil status - brouhaha - 11-07-2022, 08:04 PM
RE: Nonpareil status - brouhaha - 11-16-2022, 06:19 AM
RE: Nonpareil status - Didier Lachieze - 11-16-2022, 06:27 AM
RE: Nonpareil status - brouhaha - 11-16-2022, 06:33 AM
RE: Nonpareil status - rprosperi - 11-16-2022, 02:07 PM
RE: Nonpareil status - brouhaha - 11-16-2022, 05:49 PM
RE: Nonpareil status - Mark H. Shin - 11-19-2022, 04:19 PM
RE: Nonpareil status - brouhaha - 11-20-2022, 09:38 AM
RE: Nonpareil status - Didier Lachieze - 11-20-2022, 03:01 PM
RE: Nonpareil status - Mark H. Shin - 11-20-2022, 10:45 PM
Nonpareil on HiDPI displays - brouhaha - 12-13-2022, 01:24 AM
HP-55 (RE: Nonpareil status) - brouhaha - 12-27-2022, 12:25 AM
RE: Nonpareil status - teenix - 12-27-2022, 03:17 AM
RE: Nonpareil status - brouhaha - 12-27-2022, 04:17 AM
publicity - brouhaha - 01-08-2023, 10:24 PM
RE: Nonpareil status - agarza - 01-09-2023, 05:08 PM
Nonpareil 2, now with SVG! - brouhaha - 10-29-2023, 09:27 AM
RE: Nonpareil status - Mike T. - 11-03-2023, 12:21 AM
RE: Nonpareil status - brouhaha - 11-03-2023, 03:45 AM



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