Hi Enoch, > Isn't the following more sensible? > > : is_low? ( pinmask portaddr -- f) > - c@ invert and > + c@ and 0= > ; > > : is_high? ( pinmask portaddr -- f) > - c@ and > + c@ and 0> > ; > > Thanks, Enoch. > > 1) the writeup says they return "true if..." which means return -1 and > not a bitmask.
technically only FALSE is specified: 0. TRUE is everything else. But I agree, that a flag should be wellformed. Do your changes work in all cases? Matthias ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel