Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: "Arthur" , djgpp AT delorie DOT com Date: Tue, 30 Jun 1998 10:08:03 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: 64k demo In-reply-to: <00ea01bda399$4f778a80$364e08c3@arthur> Precedence: bulk "Arthur" wrote: > >No! if you apply >> and << to an unsigned you get logical stuff. The > arithmetic > >is used only for signeds. > > > Ahh, I see. Can you not do it "manually", though? Isn't "manually" is pretty automatic the shifts in C are designed to allow power of 2 div/muls. > Also, can you do a ROL/ROR > in C or do you have to use inline ASM? And what about "shift with carry?" As all these things are architecture dependent you must do it with inline assembler. I think they could be part of the language but the C core isn't a thing that's changed often ;-). SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013