In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: PJ Allen, Attached is my library PortPins that is part of my Dynamic Virtual Peripheral library suite that I am currently writing. Ports are encoded in bytes, portpins are encoded in words, which allows to perform functions on multiple pins per port (eg. set 3 pins of RB high). The routines use assembly to save code and increase speed. No variables or locals are required by this library. This can be useful if you want to write sxb functions that take custom ports and pins. The actual subroutines and functions are in the INC file. The Demo file shows how to import the library. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=326547#m326652 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)