![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

If SWAP (or other available TARGET word) is used in a CODE or LABEL
definition it will use the HOST words during INCLUDE BUILD but will use
TARGET words if they are available.
I'm using SwiftX Coldfire 2.2.2m for the example provided here.
I ran into this issue on a different SwiftX recently, where the TARGET
CELL is 16 bits, so SWAP acted differently, and the on the fly code
words did not work. I'd never had a problem with it on machines with
TARGET CELL being 32 bits, I assume because the expected to be HOST
words ran ok with their TARGET equivalents.
I worked around it redefining the needed words in the ASSEMBLER using
the HOST words. (e.g. AKA SWAP SWAP etc...)
---< start clip >---
INCLUDE DEBUG
SwiftX/Coldfire
ok
CODE FOO1 BEGIN DROP RTS END-CODE ok
FOO1 ok
SEE FOO1
2002A96E RTS 4E75 ok
: DROP DROP ." TARGET DROP USED" ;
DROP isn't unique. ok
CODE FOO2 BEGIN DROP RTS END-CODE TARGET DROP USED ok
SEE FOO2
2002A98C RTS 4E75 ok
FOO2 ok
ORDER
Context: *TARGET *EQUATES *INTERPRETER
Current: *TARGET ok
ASSEMBLER ok
ORDER
Context: *ASSEMBLER *EQUATES FORTH *INTERPRETER
Current: *ASSEMBLER ok
TARGET ok
CODE FOO3 ok
ORDER
Context: *ASSEMBLER *TARGET *EQUATES *INTERPRETER
Current: *TARGET ok
RTS END-CODE ok
---< end clip >---
-- Dwight A. Schauer, Engineer Mailto:dschauer_at_vcsd.com VertexRSI, Longview Facility http://www.vcsd.com 1915 E. Harrison Road tel: 903 295 1480 x236 Longview, TX 75604-5438 fax: 903 295 1479 ---------------------------------------------------------------------- swiftx_at_forth.com The SwiftX programming discussion email list To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com For list command help, send subject "help" to swiftx-request_at_forth.com Message archives are located at http://www.forth.com/archive/swiftx ---------------------------------------------------------------------- This list is a forum for SwiftX users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Thu May 12 2005 - 05:56:13 PDT
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:50 PST