28.2.6 __builtin_bitcopy

Description

This function will copy a specified source bit from a source to a specific bit position in destination using the Carry bit.

Prototype

void __builtin_bitcopy(volatile uint16_t *pdest, uint16_t destbit, volatile uint16_t *psrc, uint16_t srcbit)

Arguments

pdest - Pointer to destination

destbit - Destination bit position

psrc - Pointer to source

srcbit - Source bit position

Return Value

None

Example Instruction Sequence

btst.c [psrc],srcbit
bsw.c [pdest],destbit