celichi
Lifetime Supporting Member
Hello Smart People,
I need to take 32 bits in a DINT, and transpose each bit to 32 DINTs.
If bit 00 = 1, then word 00 = 1
If bit 00 = 0, then word 00 = 0
If bit 01 = 1, then word 01 = 1
If bit 01 = 0, then word 01 = 0
.
.
.
and so on...
I want to avoid
XIC mov 1
XIO mov 0
I though about indirect pointer and loop or 1 pre scan, but wondering if there is a better path?
Thanks,
I need to take 32 bits in a DINT, and transpose each bit to 32 DINTs.
If bit 00 = 1, then word 00 = 1
If bit 00 = 0, then word 00 = 0
If bit 01 = 1, then word 01 = 1
If bit 01 = 0, then word 01 = 0
.
.
.
and so on...
I want to avoid
XIC mov 1
XIO mov 0
I though about indirect pointer and loop or 1 pre scan, but wondering if there is a better path?
Thanks,