Win32Forth question, Bill Ragsdale
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
Win32Forth question, Bill Ragsdale         


Author: Bill Ragsdale
Date: Sep 19, 2008 11:31

Hi group, I'm back to Forth for a ham radio application using
Win32Forth and lovin' it.

I'm building a radio direction finder with a PIC processor. I need
the following for testing and later for a Forth-PIC target compiler.
I need to un-nest from a colon definition returning two levels up the
calling sequence in this form:

: ACTION-ITEM 101 DOUBLE-UNNEST ." This doesn't execute" ;

: CALLING-ROUNTINE 1 ACTION-ITEM .” don’t return here” ;

: OUTER-ROUTINE CALLING-ROUTINE .” return here with 101 and 1” ;

Any suggestions?

Best regards,

Bill Ragsdale
bill@billragsdale.cc
530-867-6241
3 Comments
Re: Win32Forth question, Bill Ragsdale         


Author: Bill Ragsdale
Date: Sep 19, 2008 11:58

Group,

Good Ole Forth. I answered my own question. R>DROP is sufficient to
un-nest two levels up.

: ACTION-ITEM 101 R>DROP ;
: CALLING-ROUTINE 1 ACTION-ITEM .” don’t return here” DROP DROP ;
: OUTER-ROUTINE CALLING-ROUTINE .” return here with 101 and 1” ;

Does work fine.

Bill Ragsdale bill (at) billragsdale.cc

=========
Show full article (1.11Kb)
no comments
Re: Win32Forth question, Bill Ragsdale         


Author: Andrew Haley
Date: Sep 21, 2008 03:18

Bill Ragsdale wrote:
> Group,
> Good Ole Forth. I answered my own question. R>DROP is sufficient to
> un-nest two levels up.

Hey, even though you solved your own problem it's great to know you're
around. Perhaps next time a fig-FORTH question comes up I'll pass it
on to you. Naah, just kidding... :-)

Andrew.
no comments
Re: Win32Forth question, Bill Ragsdale         


Author: Alex McDonald
Date: Sep 22, 2008 04:53

On Sep 22, 3:27 am, "Ed" invalid.com> wrote:
> "Bill Ragsdale" wrote in message
>
> news:52fb1ba0-c71b-4854-a08f-830ddab669ac@t54g2000hsg.googlegroups.com...
>
>> Group,
>
>> Good Ole Forth. I answered my own question.   R>DROP is sufficient to
>> un-nest two levels up.
>
>> : ACTION-ITEM     101    R>DROP  ;
>> : CALLING-ROUTINE  1 ACTION-ITEM ." don't return here" DROP DROP ;
>> : OUTER-ROUTINE  CALLING-ROUTINE    ." return here with 101 and 1"  ;
>
>> Does work fine.
>>  ...
>
> As an alternative one could employ CATCH THROW.  It would be
> portable and avoids having to keep track of subroutine levels.
> ...
Show full article (1.23Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Bill O'Reilly: MONDAY, Bill's Show Will Be On The Daily Kooks of the Daily KOS...Don't Miss It!alt.military.retired ·