Guest User

Untitled

a guest
Aug 15th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. a = BCD[0]
  2. b = BCD[1]
  3. c = BCD[2]
  4. d = BCD[3]
  5. e = BCD[4]
  6. f = BCD[5]
  7. g = BCD[6]
  8. h = BCD[7]
  9. i = BCD[8]
  10. j = BCD[9]
  11. k = BCD[10]
  12. m = BCD[11]
  13.  
  14. si = SelectableInt(0b010000000000, 12) # 0x400
  15. rv = concat(a, b, c, d, e, f, g, h, i, j, k, m)
  16. bits = [si[bit] for bit in range(12)]
  17. print(si, rv, concat(*bits))
Advertisement
Add Comment
Please, Sign In to add comment