TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CS/A65: A 6502 computer with USB, Ethernet and co-processors

132 pointsby amrcnimgrntalmost 4 years ago

8 comments

cdcarteralmost 4 years ago
Always love to see a 6502 post here on HN. It&#x27;s a really unique processor compared to other 8-bit processors at the time. With only one general purpose register, and memory mapped IO, the 6502 offers a ton of &quot;addressing modes&quot; to solve problems that the 8080 would solve with register transfers.<p>Ben Eater (<a href="http:&#x2F;&#x2F;beneater.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;beneater.net&#x2F;</a>) makes a neat video series and accompanying product kit where you build a 6502 on a breadboard, if you&#x27;re looking for something a little more approachable than this (very cool) project!
评论 #28250910 未加载
评论 #28250750 未加载
评论 #28250942 未加载
amrcnimgrntalmost 4 years ago
Andre Fachat also wrote a pre-emptive multitasking kernel for the 6502:<p><a href="http:&#x2F;&#x2F;www.6502.org&#x2F;users&#x2F;andre&#x2F;osa&#x2F;oa1.html" rel="nofollow">http:&#x2F;&#x2F;www.6502.org&#x2F;users&#x2F;andre&#x2F;osa&#x2F;oa1.html</a><p>This is basically the same CPU as in the NES.
评论 #28249409 未加载
评论 #28250138 未加载
whartungalmost 4 years ago
Some folks may be also interested in his latest endeavor.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fachat&#x2F;MicroPET" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fachat&#x2F;MicroPET</a><p>It&#x27;s quite clever. At it&#x27;s core, it&#x27;s PET clone.<p>But deeper, it&#x27;s not just a PET clone, but 4 other machines in the PET series.<p>On top of that it&#x27;s based on a 65816, has B&amp;W 640x480 VGA graphics, as well as several different text modes. As a cherry on top, it can run 4 &quot;virtual&quot; PETs simultaneously.<p>This is much closer to a machine that I&#x27;m interested in. Fundamentally, a fast 65816 with memory (at least 1MB), UART, and access to a &quot;full speed&quot; USB bus (12.5Mbits), which it boots off of (it could also boot off of an SD Card).<p>This machine is close. The SPI to the Ethernet and USB is 6MHz, and driven by the CPLD rather than bit banged off the CPU.
评论 #28261790 未加载
jaclazalmost 4 years ago
As a side-side note, I always found fascinating how you can have essentially a 6502 with display, 2 MB of memory (or more) and a USB port for a few bucks, as demonstrated here:<p><a href="https:&#x2F;&#x2F;spritesmods.com&#x2F;?art=picframe&amp;page=1" rel="nofollow">https:&#x2F;&#x2F;spritesmods.com&#x2F;?art=picframe&amp;page=1</a><p>I often wonder why the manufacturers - besides the photoframe usage - don&#x27;t sell an &quot;open&quot; version with some toolkit to let people have fun with these devices.
评论 #28257786 未加载
skydealmost 4 years ago
Noob her! why use a 6502 versus another 8bit cpu like Atmel AVR? Is there any advantage? Does it consume less electricity while running at similar speed ?
评论 #28251991 未加载
评论 #28250981 未加载
评论 #28250172 未加载
评论 #28249981 未加载
评论 #28250516 未加载
评论 #28252438 未加载
评论 #28250909 未加载
评论 #28250052 未加载
评论 #28250070 未加载
cubanoalmost 4 years ago
Back in the mid 80&#x27;s when I was in collage, my primary CP professor was a huge fan of the 6502 and thought it the ideal chip for undergrads to learn the basics of computer engineering...and it was, for me at least.<p>Way easier to breadboard and write opcode for then, and more powerful than the Intel 4004 and 8008 (what would eventually become the 8086..the great-great-great grandfather of the i9&#x27;s we now use of course), my very first working &quot;computer&quot; used a 6502 at its heart for my senior project...we attempted to build a voice-activated phone and actually got something that would pick up and shut off the phone with some noise, but obviously a working voice-activated phone was something that was still many years away.<p>Also, I remember writing an opcode instruction emulator for the chip as a extra-credit project for one my classes. I wrote a really nice emulator on my beloved Atari ST and, much to my horror, discovered a horrendous bug in he C compiler I used for the project, almost ruining both the project and my grade for the quarter.<p>The program had a graphical representation all all the primary subsections of a basic computer...CPU, disk memory, the various busses, and some other things that my old brain can no longer remember, and the program would step thru the processors opcodes and show, with literally the 1s and 0s on the screen, how all the parts of the computer processed the opcode instruction set into something that coordinated all the chips into doing very useful stuff.<p>The problem was that due to some sort of crazy hex arithmetic bug in the compiler, one of the values at one of the nodes was stuck at like x0E or something like that...and no matter what I tried to do to debug it, I could not get the damn thing to work perfectly. I thought I was going to fail the class for sure, and it wasn&#x27;t even my fault!<p>Thankfully, I was able to show the results in pure binary form, and the rest of the program was quite impressive. Also, my professor was a HUGE fan of the Atari ST (probably because it used the 68000 and wasn&#x27;t Intel), so the day of me showing him my work wasn&#x27;t a total failure...in fact, his face totally lit up when I asked him if I could pop the floppy into the ST in his office, and we verified that, yes, the bug was there in all versions of the compiler.<p>Only one other student had chosen to do the assignment, and he had used a minicomputer from his work to do it and his results where shown in reams of printouts where mine was there graphically represented in real time updates as you stepped thru the opcode instructions. I remember its addressing modes and GP registers made writing opcode a breeze as you didn&#x27;t have to waste cycles juggling data and memory addresses at all.<p>[edit] wow...sorry this was such a long post! I just got lost in remembering old times...
评论 #28253641 未加载
userbinatoralmost 4 years ago
It&#x27;s amusing to think that all the peripherals individually probably have more transistors than the CPU itself. Neither USB nor Ethernet controllers are particularly simple.
glonqalmost 4 years ago
Pros and cons of this versus Commander X16 ?
评论 #28250428 未加载
评论 #28250006 未加载