Word concept from Forth applicable in DM 42

Discussion around the Swiss Micros DM42 calculator.
Post Reply
wilnav
Posts: 3
Joined: Wed Mar 27, 2019 1:47 am

Word concept from Forth applicable in DM 42

Post by wilnav »

Thank you for your patience.

I have a cursory understanding of Forth. An example of a Forth word on the DM42 would be [ DMS>] which takes a value in degrees . minuets and seconds and coverts to Decimal degrees. Forth type words created in the DM42 could later be used in programs.

Is i possible to create Forth type words?

Thank you,
william
Thomas Okken
Posts: 913
Joined: Tue May 02, 2017 5:48 pm
Location: United States
Contact:

Re: Word concept from Forth applicable in DM 42

Post by Thomas Okken »

Calling a subroutine with XEQ is like executing a Forth word, except Forth really requires an unlimited stack, and the four-level stack of the DM42 and other "classic" RPN calculators is way too small for that style of programming. The RPL calculators by Hewlett-Packard are a better match (i.e. the 28/48/49/50 series)... or wait for unlimited-stack support in Free42, which I'm working on at the moment, and which I assume will find its way into the DM42 as well in due course.
Post Reply