Re: [Flashforth-devel] Switching Endians
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-03-27 20:51:32
|
It's a bug in a FlashForth system. All stack manipulating words are written so that the stack can be anywhere. Let's say the word is used in one of many background tasks. It's a bit difficult to predict if the word will be used on a page boundary or not. If you don't use the word in a BG task you will in practice get away with it. But somebody else may not and be hit with a really subtle bug. Peace ! Mike On 03/27/2014 09:57 PM, craig bair wrote: > The way you wrote the initial stack allocation and the size limit you > specified won't allow it to cross a page boundry, therefore there's no > bug. (grin) Thought of that when reverse engineering the locations > the sp pointed at. Re-read the source to be sure. Actually, my first > try had the FSR0 inc and dec reversed with amusing results... > |