"Build a 6502 computer" - Ben Eater

For discussing the 65xx hardware itself or electronics projects.
Post Reply
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

"Build a 6502 computer" - Ben Eater

Post by BigEd »

Nearby:
thedrip wrote:
Ben Eater's latest video is taking on a 6502 directly.

“Hello, world” from scratch on a 6502
From the support site:
Quote:
In this video series, I'll build a basic 6502 computer with an LCD display and a few buttons, explain how to program it in assembly, and write a game or two.

Videos
This series is in progress and more videos are on the way soon!
(I thought this merited a new thread)
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: "Build a 6502 computer" - Ben Eater

Post by BillO »

Watching "Hello World" right now.
Bill
Martin_H
Posts: 837
Joined: 08 Jan 2014

Re: "Build a 6502 computer" - Ben Eater

Post by Martin_H »

Thanks for posting this. I watched it a few days ago and thought it was well done. I'm hoping he pairs it with worlds worst video card in the future.
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: "Build a 6502 computer" - Ben Eater

Post by Chromatix »

Interestingly, he says he's producing a kit so that you can follow along at home. Seems like it might be a pretty good starter pack.
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: "Build a 6502 computer" - Ben Eater

Post by drogon »

Chromatix wrote:
Interestingly, he says he's producing a kit so that you can follow along at home. Seems like it might be a pretty good starter pack.
Produced a kit - and sold out virtually immediately...

He does kits for other stuff too.

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
thedrip
Posts: 48
Joined: 02 Oct 2018

Re: "Build a 6502 computer" - Ben Eater

Post by thedrip »

If these videos turn out as well as the SAP-1 and video card, we will have a new "newbie" link to go with Garth's primer (which enabled my own sbc design/build)
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: "Build a 6502 computer" - Ben Eater

Post by cbmeeks »

Martin_H wrote:
I'm hoping he pairs it with worlds worst video card in the future.
Not sure why he called it the world's worst video card. It was actually pretty nice.

Years ago I created a PIC based B/W video "card" that literally had two pixels for the entire screen. One black and one gray. The entire NTSC screen was 2x1 pixels.

I'm pretty sure mine was worse. LOL
Cat; the other white meat.
Alnitak
Posts: 14
Joined: 21 Jul 2019

Re: "Build a 6502 computer" - Ben Eater

Post by Alnitak »

I'm puzzled by the memory map in his design.

He appears to be throwing away half of the 62256 32kB RAM to make space for the I/O, still leaving 32kB left over for ROM. :?

(strictly speaking, writes to the top half of the RAM chip's address space will still reach it, but you can't read them back because ~OE is tied to A14)
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: "Build a 6502 computer" - Ben Eater

Post by Chromatix »

It's a valid strategy if you want to simplify the address decoding as much as possible, want to use as much of the address space as possible, and if you also think code will be larger than data. If the reverse is true, you would want to put the I/O overlapping the ROM area instead.

For my 6502 Fake Finder, which has fairly low memory requirements, I'm using 8Kx8 RAM and ROM parts which are about as cheap as they come. The address/control logic is literally two chips - a 74HCT00 and a 74HCT138. This still leaves big 8KB gaps in the memory map where there simply aren't enough I/O devices to fill it, but who cares? For a more ambitious machine I would of course take more care.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8775
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: "Build a 6502 computer" - Ben Eater

Post by GARTHWILSON »

Quote:
I'm puzzled by the memory map in his design.

He appears to be throwing away half of the 62256 32kB RAM to make space for the I/O, still leaving 32kB left over for ROM. :?

(strictly speaking, writes to the top half of the RAM chip's address space will still reach it, but you can't read them back because ~OE is tied to A14)
Ben pretty clearly got it from the address-decoding page of the 6502 primer and the top of the circuit potpourri page.  I published it over seven years ago, and have been using the scheme for another 20 years prior to that, in my primary workbench computer.  I'm glad it's getting used; but it would be nice if he would give credit.

Beginning computer builders tend to make the address-decoding logic very complex, forgetting that each level of discrete logic has substantial delay (and that something like the '138 has a lot more delay than a simple NAND gate), and greatly reducing the maximum operating speed of the computer.  Speaking only of program space, 64K is an absolutely huge amount of memory for a single person to fill up in assembly language or any of a lot of other languages likely to be used with such a computer.  OTOH, if you need a lot of data space, then yes, 64K can be very quick to fill up, if for example you're getting the data from an A/D converter and getting tens of thousands of points per second (which I've done).  But if that's the case, the 65816 is a much better way to go, or store the samples in a many-megabyte SPI flash memory that's interfaced through the I/O.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Post Reply