Page 1 of 1

Word concept from Forth applicable in DM 42

Posted: Wed Dec 30, 2020 7:36 pm
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

Re: Word concept from Forth applicable in DM 42

Posted: Wed Dec 30, 2020 11:33 pm
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.