[sdiy] help...no make8() function in Arduino...converting PIC to AVR
dan snazelle
subjectivity at hotmail.com
Wed Apr 11 18:09:17 CEST 2012
On Apr 11, 2012, at 12:04 PM, Eric Brombaugh wrote:
>
> On Apr 11, 2012, at 8:25 AM, dan snazelle wrote:
>
>> i have been looking for the make8 function online so i can just write that function into my code but no luck
>
> From the CCS compiler documentation:
>
> Syntax: i8 = MAKE8(var, offset)
> Parameters: var is a 16 or 32 bit integer. offset is a byte offset of 0,1,2 or 3.
> Returns: An 8 bit integer
> Function: Extracts the byte at offset from var. Same as: i8 = (((var >> (offset*8)) & 0xff) except it is done with a single byte move.
>
> They give you the equivalent code right there.
>
> Eric
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at dropmix.xs4all.nl
> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy
>
so the CCS compiler is the pic compiler eh?
that will come in handy in the future for looking up these things.
thanks for all the help guys
More information about the Synth-diy
mailing list