Re: how to ADD 32 to a signed number without using ADD only AND and OR



Pknific@xxxxxxxxx wrote:
> how do you ADD 32 to a signed number less then 16 without
> using ADD only using the AND and OR operation?

Hmm ... sounds like a homework problem.

Very easy if the number is unsigned,
a pointless pain otherwise.

-- Robert


.



Relevant Pages

  • Re: scheduler: IRQs disabled over context switches
    ... Hmm, they do indeed. ... Hmm, if we release the rq lock before the ctx switch, ... CPU might see "prev" as free-to-pull, while we're still playing with its ... The other one is the timer tick, that might screw us up while ...
    (Linux-Kernel)
  • Re: www.olimex.com
    ... >> Hmm, I'm using firebird and all I see are the company name and its mirror ... Robert ...
    (comp.arch.embedded)
  • Re: News from Oz
    ... > fulfilling but its was a real shame they drove good folks away. ... I WANT to support CAT ... ... Hmm. ... Prev by Date: ...
    (uk.business.agriculture)
  • Re: Warning to Ebay Buyers
    ... >Buy at your own risk. ... Hmm. ... I've purchased multiple items from that user. ...
    (comp.sys.apple2)
  • Re: Recovery boot sector of logical partition
    ... Hmm ... ... It's worth the try. ... Joep ... Prev by Date: ...
    (comp.sys.ibm.pc.hardware.storage)