Spaces:
Sleeping

XCos_MCP / data /blocks /BITSET.json
xcos-bot
Deploy snapshot from 23aafd1a (verified archive)
39e01c4
Raw History Blame Contribute Delete
987 Bytes
{
"relatedBlocks": [
"BITCLEAR - clear specific bits",
"EXTRACTBITS - extract bit ranges",
"SHIFT - bitwise shift operations"
],
"criticalRules": [
"exprs[0]=bit index to set, [1]=data type (0=uint32)",
"Uses INT32_MATRIX data type for both input and output",
"objectsParameters stores config with sci_uint32 precision",
"Block is 80x40 - wider than standard"
],
"description": "Set a specific bit in an integer value",
"anomalies": [
"exprs[0]=bit index to set, [1]=data type (0=uint32)",
"Uses INT32_MATRIX data type for both input and output",
"objectsParameters stores config with sci_uint32 precision",
"Block is 80x40 - wider than standard",
"Uses sci_uint32 in objectsParameters (unlike BITCLEAR which uses sci_int32)"
],
"name": "BITSET",
"sourceFile": "data/macros/IntegerOp/BITSET.sci",
"commonUses": [
"Setting flag bits in control systems",
"Integer manipulation",
"Bit-masking operations"
]
}