[Flashforth-devel] Switching Endians
Brought to you by:
oh2aun
From: craig b. <dab...@ya...> - 2014-03-27 20:00:25
|
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... craig ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... You cannot inc/dec the 12 -bit fsr pointer over a 256 byte page boundary :-) It will stay on the same page. You have to use the special registers that change the whole pointer, or deal with the carry status. |