Re: FPmath and Dialog.

From: Rick VanNorman <rvn_at_forth.com>
Date: Thu, 31 Dec 1998 17:52:07 -0800

>Original sender: Robin McIntosh <macro_at_ihug.co.nz>
>Greetings Swift-Talk People,
>
>I have been attempting to comvert a small special purpose calculator
>application to floating point.
>The interface consists of a dialog box containing a number of [EDITTEXT
>controls to enter parameters
>and a CALC button. The original version was written using integer math
>and worked fine.
>
>Attempting any floating operation produces a message box ........
>

Robin,

Multiple problems and not quite enough information.

q: are you using the hardware or software stack?

This answer makes a difference as to what you need to know
and be aware of.

But, you need to know that during each callback, the floating
point chip context is initialized fresh -- i.e., things pushed
during the previous callback are not going to be on the chip
this time. Also, even if the memory-based stack is used, the memory
is pointed to by user variables, and these will also have to be
re-initialized in each callback before the memory-based
stack can be reused.

I will be happy to provide the correct code for you when I get
back to work on Monday.

Rick VanNorman

.

>From cahelber_at_uswest.net Wed Dec 1 12:16:56 1999
To: sftalk_at_forth.com
Message-Id: <m0000635_at_gerd.forthinc.com>
Date: Wed, 1 Dec 1999 12:16:56 -0700 (MST)
From: "Carl A. Helber" <cahelber_at_uswest.net>
Subject: Directory access

I'm converting a MIDI player program that I wrote many years ago using
a version of F-83. The songs data are all in a directory that is different
from the working directory. (I'm using block files and have most everything
working but MARKER. Using this word with a name does remove the words from
the point of insertion but the editor no longer works after that invocation.
I work around this by simply exiting SwiftForth and starting over. Anybody
else have this problem?) The main question for this note is how do I use <CD>
in a colon definition. With F-83 I had access to some lower level directory
words which allowed me to do the job. I haven't been able to figure out how
to do this in SF. No problem changing directories using <CD> as a direct
input and using PUSHPATH and POPPATH for manuevering but this is not
satisfactory
for my program.

Thankyou,

Carl A. Helber

.
Received on Thu Dec 31 1998 - 17:52:07 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.