do somebody now how i can acces the pc ports with c++ under win98/win95 edg ----- Oorspronkelijk bericht ----- Van: Tim Hamel Aan: Verzonden: samedi 20 novembre 1999 12:17 Onderwerp: Re: [OT] Seeprom + VB + PC > You are the man! =) I guess the "step -1" REALLY makes a difference. As far > as the EEPROM goes, it is 9 bits (Start bit + Opcode (2 bits) + 6 bit > address). Now, all I do is OR the value that goes out to 378 with 2 and CS > will be high constantly. Woohoo! I thank you VERY much! > > Tim Hamel > > > In a message dated 11/20/99 3:06:32 AM Pacific Standard Time, ral@LCFLTD.COM > writes: > > > 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 > > >