Hi, 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. 2) true/false values are also more convenient when analyzing multiple port inputs. ------------------------------------------------------------------------------ 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