embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: GO for Debug + App

From: Leon Wagner <leon_at_forth.com>
Date: Fri, 19 Apr 2002 10:43:17 -0700

Consider something like this:

[DEFINED] APP-LOOP [IF]

: GO ( -- ) ?XTL IF DEBUG-LOOP THEN APP-LOOP ;

[ELSE]

: GO ( -- ) DEBUG-LOOP ;

[THEN]

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of Bulgrien, Dennis
> Sent: Friday, April 19, 2002 8:46 AM
> To: swiftx_at_forth.com
> Subject: [swiftx] GO for Debug + App
>
>
>
> By default--
>
> : GO ( -- ) DEBUG-LOOP ;
>
> Could the live GO check a flag, ?XTL ( -- flag ) DIPSWITCH @ for instance,
> and either run the talker debug loop or the app?
>
> : GO ( -- ) ?XTL IF DEBUG-LOOP ELSE APP-LOOP THEN ABORT ;
>
> ?XTL IF ACK STOP ... is what was done before. If I can use this new GO,
> then I can replace my platform's small talker target.bin on the board's
> flash with my app's target.bin and get both my app and the interactive
> talker (one or the other of course).
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
> For help with listar commands, send subject "help" to listar_at_forth.com
> Archives are located at http://www.forth.com/swiftx -- check them out!
> ----------------------------------------------------------------------
> THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Fri Apr 19 2002 - 10:42:54 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:24 PST