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

Interactive $d TYPE differs on HOST vs TARGET

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Fri, 3 Dec 2004 16:21:52 -0600

: crtype 13 PAD C! PAD 1 TYPE ;
: cremit 13 EMIT ;

If crtype is defined for HOST it prints a black rectangle (the <cr> above)
in the SwiftX window whereas cremit moves the cursor. If defined for TARGET
it does *not* print a black rectangle; it moves the cursor like cremit. The
crtype case occurs with at least SwiftX ColdFire v3 and TMS320C3x v3. The
following can be used to change this behavior:

: HOST-TYPE ( addr len -- ) 0 ?DO COUNT EMIT LOOP DROP ;
: crtype 13 PAD C! PAD 1 HOST-TYPE ;
----------------------------------------------------------------------
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 Fri Dec 03 2004 - 14:22:12 PST

This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:48 PST