> -----Original Message----- > From: Dale Botkin [SMTP:dale@BOTKIN.ORG] > Sent: Wednesday, February 19, 2003 9:46 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: I always pick the worst times.... > > "G.Smith" said: > > > On 17 Feb 2003, at 17:09, Dale Botkin wrote: > > > > > On Mon, 17 Feb 2003, G.Smith wrote: > > > > > > > On 17 Feb 2003, at 15:01, Chris Loiacono wrote: > > > > > > > > > Thanks. But isn't there a simple bit shift operator in VB? That > would > make > > > > > it beyond simple.... > > > > > > > > Nope... > > > > > > Really??? Multiplication and division by 2, 4, 8, 16, 32 etc are not > > > supported? What an odd language that must be. > > > > > Try rotating the least sig bit of a byte (into the carry) to shift into > the > most sig > > bit of the next byte using * or / in VB... > > > > I'd rather try bamboo under the fingernails than VB, to be honest, but > anyway > that's a rotate, not a shift. > > Dale > It's only a rotate if the "carry" bit gets put back into the highest significant bit in the SAME byte, not another byte. This is simply a shift. As for VB, I guess it's horses for course and one mans meat etc... but I wouldn't use anything else for my application (automated test equipment). Nothing comes remotely close to it for debugging ability AFAIK. Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu