I don’t yet know if I’ve wrecked it in basic.
Code:shifter byte offset byte array byte[7] shifter = 11 offset = shifter >> 3 // byte in array to pass to whatever needs the 4 byte result, in this case 2 array[3] = 1<<(shifter & 7) // Set it to 00000000 (00000000 00000000 00001000 00000000) 00000000 00000000 ‘dostuff with array[offset]
Bookmarks