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

Re: STATUS Cell Alignment

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Tue, 2 Apr 2002 10:37:32 -0600

This is how I cell-aligned tasks (data stack, return stack, and STATUS ). I
was able to reuse Forth Inc's BACKGROUND but don't know a way around
copy/pasting TERMINAL from Tasker.f (yours may differ) so terminal tasks get
so aligned:

INTERPRETER

: BACKGROUND ( nu ns nr -- )
>R >R >R
    SAVE-SECTIONS
      UDATA ALIGN
    RESTORE-SECTIONS
  R> R> R>
  BACKGROUND ;

: TERMINAL ( n -- )
   |NUM| + |PAD| + RESERVE \ Space for NUM, PAD, HERE
   |U| |S| |R| |TIB| + BACKGROUND , ; \ Allocate task, save its HERE

-----Original Message-----
From: Leon Wagner [mailto:leon_at_forth.com]
Sent: Friday, March 29, 2002 19:06
To: Bulgrien, Dennis

Depends on the bus size. If it's 16-bit (very common in 68K systems) or
8-bit
(less common but we've seen it), no problem. If it's 32-bit then you should
align it.

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com] On Behalf
> Of Bulgrien, Dennis
> Sent: Friday, March 29, 2002 15:28
>
> I've found that STATUS on our 68k is not necessarily on a cell boundary...
----------------------------------------------------------------------
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 Tue Apr 02 2002 - 08:38:14 PST

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