Post
Topic
Board Development & Technical Discussion
Re: VIA PadLock support. [Reward 50BTC]
by
jgarzik
on 06/08/2010, 18:16:57 UTC
why bother? Via publish an SDK for it.

I should also point out that you will need the lib files for linking.

The sha256 setup is very likely bitcoin-specific, and you don't need lib files or SDK to simply issue an instruction:
Code:
        asm volatile (".byte 0xf3,0x0f,0xa6,0xd0" /* rep xsha256 */
                      : \
                      : "c"((unsigned long)state.count + count), \
                        "a"((unsigned long)state.count), \
                        "S"(in), "D"(result));