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

Re: SwiftX Popup Hex Stop

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Wed, 9 Jan 2002 08:59:48 -0600

An incomplete workaround:

HOST
: WH BASE @ DECIMAL WH BASE ! ;
INTERPRETER
: WH WH ;

This doesn't always work because SwiftX WH clears the stack on something
like WH TIMER, where it says "Can't open file" (see below); a VARIABLE could
be used. Also, TARGET HEX WH still prints hex, probably a BASE issue. WH
might do something fancy (which I can't see) to use either TARGET or HOST
BASE , but the workaround only used HOST BASE .

It would be nice if WH didn't clear the stack. If I'm interacting with my
target with some data on the stack and WH a word on it and in SwiftForth,
I'll lose my place.

WH TIMER

Wordlist *TARGET
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\SRC\TIMING.F
   1B| : TIMER ( n -- ) COUNTER SWAP - . ;

Wordlist *INTERPRETER
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\XCOMP\INTERP-S.F
   6E| : TIMER TIMER ;

Wordlist FORTH
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTFORTH\SRC\IDE\WIN32\COUNTER.F
   1F| Can't open file

-----Original Message-----
From: Bulgrien, Dennis
Sent: Tuesday, January 08, 2002 11:49
To: 'swiftx_at_forth.com'
Subject: [swiftx] SwiftX Popup Hex Stop

In SwiftX v3, I cross-reference TIMER (see below), right-click on 110| and
pick EDIT. It loads into my editor at line 110. However, if the base is
hexadecimal, WH displays line numbers in hex and right-click on 6E| EDIT no
longer loads it into the editor; apparently the hex line number was passed
on the command line but since it expects decimal does not know how to
interpret it. Another related issue will occur if the hex number happens to
be composed entirely of decimal digits; the editor will load the file but go
to the wrong line number. Would'nt it be nice if WH ignored BASE or the
EDIT on the pop-up menu translated to decimal? Unfortunately SwiftX can't
open the file containing WH so I can modify it.

WH TIMER

Wordlist *TARGET
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\SRC\TIMING.F
   27| : TIMER ( n -- ) COUNTER SWAP - . ;

Wordlist *INTERPRETER
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\XCOMP\INTERP-S.F
  110| : TIMER TIMER ;

Wordlist FORTH
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTFORTH\SRC\IDE\WIN32\COUNTER.F
   31| Can't open file

EDIT 110| ok
HEX ok
WH TIMER

Wordlist *TARGET
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\SRC\TIMING.F
   1B| : TIMER ( n -- ) COUNTER SWAP - . ;

Wordlist *INTERPRETER
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTX\XCOMP\INTERP-S.F
   6E| : TIMER TIMER ;

Wordlist FORTH
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTFORTH\SRC\IDE\WIN32\COUNTER.F
   1F| Can't open file

EDIT 6E| ok

LOCATE WH
Line 281 in file:
d:\cygwin\home\dbulgrien\cvs\sx3\SWIFTFORTH\SRC\IDE\WIN32\XREF.F
Can't open file

Dennis W. Bulgrien, Engineer Mailto:dbulgrien_at_vcsd.com
VertexRSI, Controls and Structures http://www.vcsd.com
1915 E. Harrison Road tel: 903 295 1480 x287
Longview, TX 75604-5438 fax: 903 295 1479
----------------------------------------------------------------------
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 Wed Jan 09 2002 - 07:01:59 PST

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