Shift 'em bits - Page 2

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Re: Shift 'em bits
Quoted text here. Click to load it

If, for some reason the interrupt are not allowed to be
turned off, one could (perhaps) use another atomic operation
to protect the results being processed.

For instance, if the interrupt supplies the 64 value
that needs to be shifted, it can place these in a

The main loop increments an index (atomic) and starts
working on the previously stored value.

But this is all guess work.

Thanks, Frank.
(remove 'x' and 'invalid' when replying by email)

Re: Shift 'em bits
On Fri, 19 Nov 2004 11:20:46 +0100, "WaldemarIII"

Quoted text here. Click to load it

Atomic 64 bit shift on an 8bit cpu ?
You need to disable interrupts.

Quoted text here. Click to load it

Out of curiostiy, why is assembly out of question ?

Quoted text here. Click to load it

Maybe, it'll help you tell us what and why you shift. There is maybe a
better way ?!

Do not email to, it's a spam-only account :-)
We've slightly trimmed the long signature. Click to see the full one.

Site Timeline