video thumbnail 27:24
“Hello, world” from scratch on a 6502 — Part 1

2019-09-14

[public] 2.70M views, 124K likes, 906 dislikes audio only

channel thumbBen Eater

Learn how computers work in this series where I build and program a basic computer with the classic 6502 microprocessor. More info: https://www.eater.net/6502

Part 2: /youtube/video/yl8vPW5hydQ

Part 3: /youtube/video/oO8_2JJV0B4

Part 4: /youtube/video/FY3zTUaykVo

Part 5: /youtube/video/xBjQVxVxOxc

Part 6: /youtube/video/i_wrxBdXTgM

Part 7: /youtube/video/omI0MrTWiMU

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

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

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:

Alex Catchpole

Armin Brauns

BakerStaunch

Beau-James Erion

Ben

Ben Dyson

Ben Kamens

Ben Williams

Bradley Pirtle

Christopher Blackmon

Clayton Parker Coleman

Daniel Tang

Dean Winger

Debilu Krastas

Dominic Kulmer

Dušan Dželebdžić

Eric Brummer

Eric Dynowski

Erik Broeders

Eugene Bulkin

fxshlein

HaykH

Ian Tait

Ivan Sorokin

JavaXP

Jay Binks

Jayne Gabriele

Jefferson Hunt

Jimmy Campbell

Joel Messerli

Joel Miller

Jordan Scales

Joshua King

Justin Duch

Kent Collins

Manne Moquist

Marcus Classon

Mats Fredriksson

Michael

Michael Burke

Michael Garland

Miguel Ríos

Nathan Wachholz

Nicholas Moresco

Onion Sniffer

Paul Pluzhnikov

Peter Simard

Randy True

Robert Butler

Sachin Chitale

Sergey Ten

SonOfSofaman

Stefan Nesinger

Stephen Smithstone

Steve Gorman

Thomas Ballinger

Vladimir Kanazir

xisente

Örn Arnarson


Astable 555 timer - 8-bit computer clock - part 1 by Ben Eater
/youtube/video/kRlSFm519Bo
put the microprocessor on a breadboard
/youtube/video/LnzuMJLZRdU?t=76.089996
connect that to the positive power rail of our breadboard
/youtube/video/LnzuMJLZRdU?t=82.150002
connect that to the ground rail on the breadboard
/youtube/video/LnzuMJLZRdU?t=88.779999
need to hook pin 2 to 5 volts
/youtube/video/LnzuMJLZRdU?t=130.39
triggering an interrupt pin five
/youtube/video/LnzuMJLZRdU?t=154.63
all outputs
/youtube/video/LnzuMJLZRdU?t=182.92
connect pin 36 to 5 volts
/youtube/video/LnzuMJLZRdU?t=234.819
output a 10 megahertz clock
/youtube/video/LnzuMJLZRdU?t=266.01999
using the modern static version of the 6502
/youtube/video/LnzuMJLZRdU?t=318.95999
tie it high through a 1k resistor
/youtube/video/LnzuMJLZRdU?t=375.32999
plug in five volts
/youtube/video/LnzuMJLZRdU?t=403.04999
connect a few of the address lines
/youtube/video/LnzuMJLZRdU?t=434.63901
connecting up the first five address lines
/youtube/video/LnzuMJLZRdU?t=437.63901
connect the other side of the leds to ground
/youtube/video/LnzuMJLZRdU?t=442.19901
hook them up to inputs on the arduino
/youtube/video/LnzuMJLZRdU?t=522.14899
hook those 16 address lines up to 16 of the digital
/youtube/video/LnzuMJLZRdU?t=551.71002
connected into 16 digital i / o pins of the arduino
/youtube/video/LnzuMJLZRdU?t=579.15997
loop through all 16 pins
/youtube/video/LnzuMJLZRdU?t=603.96997
initialize the serial port to 57600
/youtube/video/LnzuMJLZRdU?t=659.56
open up the serial monitor
/youtube/video/LnzuMJLZRdU?t=677.51898
set the pin mode for clock
/youtube/video/LnzuMJLZRdU?t=725.06897
attach an interrupt to the the interrupt for the clock pin
/youtube/video/LnzuMJLZRdU?t=739.22998
print out the values of the address pins once per clock
/youtube/video/LnzuMJLZRdU?t=771.62903
bring up the serial monitor
/youtube/video/LnzuMJLZRdU?t=786.12
list out all of the pin numbers for the data bus
/youtube/video/LnzuMJLZRdU?t=838.54999
set the pin mode for each of the eight data pins
/youtube/video/LnzuMJLZRdU?t=859.25
print the eight data lines
/youtube/video/LnzuMJLZRdU?t=876.91998
start with the address equal to zero
/youtube/video/LnzuMJLZRdU?t=903.77002
print the address as a four digit hex
/youtube/video/LnzuMJLZRdU?t=954.33002
set the pin mode for the read / write pin
/youtube/video/LnzuMJLZRdU?t=1015.92
bring back our serial monitor
/youtube/video/LnzuMJLZRdU?t=1062.5
treating those 8 data pins as inputs
/youtube/video/LnzuMJLZRdU?t=1098.62
tying each to either ground or 5 volts through a 1k
/youtube/video/LnzuMJLZRdU?t=1139.45
drive the output either to 0 or 5 volts
/youtube/video/LnzuMJLZRdU?t=1157.54
hooked these resistors to your either ground or 5 volts
/youtube/video/LnzuMJLZRdU?t=1174.1899
initialize the microprocessor
/youtube/video/LnzuMJLZRdU?t=1277.52
pulsed the clock seven times 1 2 3 4 5 6 7
/youtube/video/LnzuMJLZRdU?t=1303.02
advance the clock one more time
/youtube/video/LnzuMJLZRdU?t=1341.51
read the reset vector from from these two locations
/youtube/video/LnzuMJLZRdU?t=1402.35
sets its address pins to that address
/youtube/video/LnzuMJLZRdU?t=1435.2
pulse the clock
/youtube/video/LnzuMJLZRdU?t=1483.37
pulse the clock twice for it to advance
/youtube/video/LnzuMJLZRdU?t=1506.83
build your own simple computer with the 6502 microprocessor
/youtube/video/LnzuMJLZRdU?t=1577.48
Build a 6502 computer eater.net
https://www.eater.net?utm_source=yt&utm_medium=endcard&utm_campaign=6502-1
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
How do CPUs read machine code? — 6502 part 2 2,389,690 views
/youtube/video/yl8vPW5hydQ