Advertisement
Guest User

BCD to Binary using reversed double dabble.

a guest
Apr 6th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. BCD to Binary using reversed double dabble.
  2.  
  3. 4 9 1
  4. 0100 1001 0001 Init
  5.  
  6. 0010 0100 1000 1 S1
  7. 0010 0100 0101 1 -3 units
  8.  
  9. 0001 0010 0010 11 S2
  10.  
  11. 0000 1001 0001 011 S3
  12. 0000 0110 0001 011 -3 tens
  13.  
  14. 0000 0011 0000 1011 S4
  15.  
  16. 0000 0001 1000 01011 S5
  17. 0000 0001 0101 01011 -3 units
  18.  
  19. 0000 0000 1010 101011 S6
  20. 0000 0000 0111 101011 -3 units
  21.  
  22. 0000 0000 0011 1101011 S7
  23.  
  24. 0000 0000 0001 11101011 S8
  25.  
  26. 0000 0000 0000 111101011 S9 - Result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement