At 05:36 AM 11/20/99 -0500, Tim wrote: >I apologize for not being clearer in some areas. I have experience with the >parallel port, it's just this one thing that's got me stuck. To be exact.. to >read a byte from the EEPROM, the opcode is 110000000b Ok, now, I'm using Pin >2 of the parallel port (which is bit 0 of 0x378), so my question is...how do >I flip that value around so it's 000000011b so that I can start >outputting/shifting it? That's my exact problem right there! Presumably you meant 1100 0000 for the value, as your's above is 9 bits. To output bit-by-bit starting with msb: iDiv=2^7 for iPos=7 to 0 step -1 iBit=iData \ iDiv 'this will be 0 or 1 for bit in position i call OutPort(&H378,iBit) iDiv=iDiv \ 2 'shift to next lowest bit next iPos ================================================================ Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral@lcfltd.com Least Cost Formulations, Ltd. URL: http://lcfltd.com/ 824 Timberlake Drive Tel: 757-467-0954 Virginia Beach, VA 23464-3239 Fax: 757-467-2947 "Vere scire est per causae scire" ================================================================