video thumbnail 42:26
Binary to decimal can’t be that hard, right?

2020-06-27

[public] 405K views, 19.0K likes, 155 dislikes audio only

channel thumbBen Eater

More 6502: https://eater.net/6502

Support these videos on Patreon: https://www.patreon.com/beneater or https://eater.net/support for other ways to support.

0:00 Introduction

2:09 Separating digits by dividing by 10

3:24 Dividing numbers in binary by hand

9:26 An algorithm for binary division

19:06 Implementing the algorithm in 6502 assembly

34:14 Running the program

34:45 Reversing the digits

41:38 It works!

------------------

Social media:

Website: https://www.eater.net

Twitter: https://twitter.com/ben_eater

Patreon: https://patreon.com/beneater

Reddit: https://www.reddit.com/r/beneater

Special thanks to these supporters for making this video possible:

Adrien Friggeri, Alexander Wendland, Andrew Vauter, Anson VanDoren, Armin Brauns, Ben Dyson, Ben Kamens, Ben Williams, Bill Cooksey, Binh Tran, Bouke Groenescheij, Bradley Pirtle, Bryan Brickman, Carlos Ambrozak, Christopher Blackmon, Cole Johnson, Daniel Jeppsson, Daniel Sackett, Daniel Tang, Dave Burley, Dave Walter, David Brown, David Clark, David House, David Sastre Medina, David Turnbull, David Turner, Dean Winger, Dmitry Guyvoronsky, Dušan Dželebdžić, Dzevad Trumic, Emilio Mendoza, Eric Brummer, Eric Busalacchi, Eric Dynowski, Eric Twilegar, Erik Broeders, Eugene Bulkin, fxshlein, George Miroshnykov, Harry McDow, HaykH, Hidde de Jong, Ian Tait, Ingo Eble, Ivan Sorokin, Jason DeStefano, Jason Specland, JavaXP, Jay Binks, Jayne Gabriele, Jeremy A., Jeremy Wise, Joe OConnor, Joe Pregracke, Joel Jakobsson, Joel Messerli, Joel Miller, Johannes Lundberg, John Fenwick, John Meade, Jon Dugan, Joshua King, Kefen, Kenneth Christensen, Kent Collins, Koreo, Lambda GPU Workstations, Larry, London Dobbs, Lucas Nestor, Lukasz Pacholik, Maksym Zavershynskyi, Marcus Classon, Martin Roth, Mats Fredriksson, Matt Alexander, Matthäus Pawelczyk, melvin2001, Michael Burke, Michael Garland, Michael Tedder, Michael Timbrook, Miguel Ríos, Mikel Lindsaar, Nicholas Moresco, Örn Arnarson, Örper Forilan, Paul Pluzhnikov, Paul Randal, Pete Dietl, Philip Hofstetter, Randy True, Ric King, Richard Wells, Rob Bruno, Robert Diaz, Ron Maxwell, sam raza, Sam Rose, Sergey Ten, SonOfSofaman, Stefan Nesinger, Stefanus Du Toit, Stephen Kelley, Stephen Riley, Stephen Smithstone, Steve Jones, Steve Gorman, Steven Pequeno, TheWebMachine, Tom Burns, Vlad Goran, Vladimir Kanazir, Warren Miller, xisente, Yusuke Saito


Introduction
/youtube/video/v3-a-zqKfgA?t=0
Separating digits by dividing by 10
/youtube/video/v3-a-zqKfgA?t=129
Dividing numbers in binary by hand
/youtube/video/v3-a-zqKfgA?t=204
An algorithm for binary division
/youtube/video/v3-a-zqKfgA?t=566
Implementing the algorithm in 6502 assembly
/youtube/video/v3-a-zqKfgA?t=1146
Running the program
/youtube/video/v3-a-zqKfgA?t=2054
Reversing the digits
/youtube/video/v3-a-zqKfgA?t=2085
It works!
/youtube/video/v3-a-zqKfgA?t=2498
Schematics, kits, and more eater.net
https://eater.net/6502
Ben Eater Subscribe to see tutorial-style videos about electronics, computer architecture, networking, and various other technical subjects. If you want to see more on a particular subject, leave a comment and I'll try my best to add more. If you'd like to support my work, please do! https://www.patreon.com/beneater https://paypal.me/beneater https://cash.me/$eater bitcoin:1EaterJkmmuJWfm8hvULrMJGm7R8JgXTL8 bitcoincash:1JUjEErUjkgBVJP28GH6LKihvEUJ1RGZhx
/youtube/channel/UCS0N5baNlQWJCUrhCEo8WlA
Hacking a weird TV censoring device 1,724,381 views
/youtube/video/a6EWIh2D1NQ