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

ALIGN forces alignment of the current section type. ALIGNED takes a value from
the stack and bumps it up to the next cell mod if necessary. You need both of
these to align stack bases when allocating tasks. First do the
save..align..restore sequence. Then use ALIGNED for each size you pass to
RESERVE.
> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of Bulgrien, Dennis
> Sent: Tuesday, April 02, 2002 8:38
> To: Swiftx_at_Forth. Com (E-mail)
> Subject: [swiftx] Re: STATUS Cell Alignment
>
>
>
> 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.
>
----------------------------------------------------------------------
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 - 09:47:37 PST
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:23 PST