On Sat, 2013-11-09 at 19:42 -0700, craig and heather wrote: > Then I try this subtraction. 1 pick = 300; 3 pick = 100; I expect 200 > > (ATmega328P)> 1 pick 3 pick - . > > 100 ok > > Got 100 as the answer?????
I don't have my board handy right now, but I think you'll find: > .s 400 300 200 100 ok > 1 pick .s 300 400 300 200 100 ok > 3 pick .s 200 300 400 300 200 100 ok > - .s 100 400 300 200 1000 ok You're first pick made the stack deeper so you need to adjust the depth of your second pick to get the number you want. This should do what you expected: > 1 pick 4 pick - . --- Keith ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel