[sdiy] help...no make8() function in Arduino...converting PIC to AVR
Eric Brombaugh
ebrombaugh1 at cox.net
Wed Apr 11 18:04:09 CEST 2012
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
More information about the Synth-diy
mailing list