Create ioport.h

basic i/o port functions