www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/30/09:03:12

Message-Id: <m0yr02W-000S2iC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "Arthur" <arfa AT clara DOT net>, djgpp AT delorie DOT com
Date: Tue, 30 Jun 1998 10:08:03 +0000
MIME-Version: 1.0
Subject: Re: 64k demo
In-reply-to: <00ea01bda399$4f778a80$364e08c3@arthur>

"Arthur" <arfa AT clara DOT net> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019