6 ms·
CS/A65: A 6502 computer with USB, Ethernet and co-processors
- amrcnimgrnt 5y agoAndre Fachat also wrote a pre-emptive multitasking kernel for the 6502: http://www.6502.org/users/andre/osa/oa1.html http://www.6502.org/users/andre/osa/oa1.html This is basically the same CPU as in the NES.
- the-dude 5y agoAnd in the BBC B, Electron and Commodore 64.
- salamandersauce 5y agoAnd Apple II and Atari 2600 and 8 bit computers.
- deleted 5y ago[deleted]
- kQq9oHeAz6wLLS 5y agoVIC-20
- abdulhaq 5y agoIt feels weird to me that some hackers don't know what a 6502 is! Sign of my age I guess.
- mdp2021 5y agoDays ago a user who declared to be a Google employee wrote that many of his colleagues have no idea what RSS is. (No, sign of the times.)
- lholden 5y agomorns in Google Reader
- lholden 5y agoEarlier this year, I wrote a 6502 emulator and discovered that none of my coworkers even know what the 6502 was. Almost every conversation resulted in me saying: "You know the NES? It used a 6502 as a CPU".
- abdulhaq 5y agoAs time goes on my experience is that I get more and more intellectually and spiritually isolated, even in a globally connected society. Perhaps it's an inevitable part of continuing personal deveopment in a society changing dramatically over time.
- glonq 5y agoPros and cons of this versus Commander X16 ?
- wvenable 5y agoThis is a home built hobby project, if you want one you're going to have to source the parts yourself, create the PCBs, and build it. And it will mostly be one of a kind. It's a fun project if that's what you're into. I'm building a 6502 computer much less involved than this one. The Commander X16 will be more of completed commercial project where the appeal is more using the computer to write software than building the computer itself.
- deelowe 5y agoX16 is going to be more for folks who want something that just works and they can play around with in software Projects like this are more for folks who are looking to build their own computers from scratch. Typically, this is for someone who's more into hardware. Personally, I enjoy both. I have probably 6 or so kit computers at this point. FWIW, the two that I've enjoyed the most are Ben Eater's breadboard 6502 project and the nand2tetris series which is all done in software.
- kgwxd 5y agoThe goals of the X16 are actually at a crossroads right now https://www.commanderx16.com/forum/index.php?/topic/1657-change-of-product-direction-good-and-bad-news/ https://www.commanderx16.com/forum/index.php?/topic/1657-cha...
- deleted 5y ago[deleted]
- deelowe 5y agoI’m glad to see this. I would prefer a kit as well. I feel like a lot of the challenge at this point is going to be supply chain and production given the current environment with silicon. Just give me the board, any critical components, and a bom. I’ll figure out the rest.
- skyde 5y agoNoob 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 ?
- vidarh 5y agoNostalgia and/or familiarity. Lots of us grew up with 6502 based machines.
- wvenable 5y agoMore fun/interesting and more potential to be actual computer. Probably the main advantage of a 6502 is more RAM/EEPROM (as 8bit microcontrollers are pretty limited that way) and more of a hardware/software ecosystem to work with.
- the-dude 5y agoI assume memory lanes.
- z-nexx 5y agoAnd address lanes. Don't forget the ALU, etc.
- retrac 5y agoSentimentality. The 6502 has been around for almost half a century now. Often the processor in an older programmer's first computer or video game system. It's horribly limited, but assembly programming for the 6502 has become a kind of code golf.
- schemescape 5y agoI'm not 100% confident about the dates, but my understanding is that the author's project started in 1989, before AVRs were developed (1996).
- tyingq 5y agoThe Atmel has a modified harvard architecture, so it's easier to use as a microcontroller than to run an OS on. Where there are lots of available OSes for 6502, Z80, etc.
- cdcarter 5y agoAlways love to see a 6502 post here on HN. It'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 "addressing modes" to solve problems that the 8080 would solve with register transfers. Ben Eater (http://beneater.net/ http://beneater.net/) makes a neat video series and accompanying product kit where you build a 6502 on a breadboard, if you're looking for something a little more approachable than this (very cool) project!
- royjacobs 5y agoIt's a really fun architecture, agreed. I spent the last few months writing an assembler, formatter and language server for 6502 code. If you're interested, it's available at https://mos.datatra.sh https://mos.datatra.sh
- spicybright 5y agoA while back I tried writing an Atari 2600 game and got about half way (got sprites, collisions, level, just no goal) The console uses a slightly cheaper version, the 6507 I think. Same chip, just smaller address line and no interrupts (!) Instead you ran a "wait for the cathode ray to reach the right side of the screen" in order to time everything correctly. Very fascinating stuff, I recommend anyone interested in the above dive in and give it a shot. All you need is an editor[1] (I found one online!) and the stella manual[2]. There's something nice about having the entire machine spec in one book instead of leaning on stack overflow... [1] https://8bitworkshop.com/v3.8.0/?platform=vcs&file=examples%2Fhello.a https://8bitworkshop.com/v3.8.0/?platform=vcs&file=examples%... [2] https://cdn.hackaday.io/files/1646277043401568/stella.pdf https://cdn.hackaday.io/files/1646277043401568/stella.pdf
- kgwxd 5y ago2600 has been my obsession for a few years now. I too havent set a goal but I love to follow what other people are doing for it. The community is fantastic. There's a twitch and yt channel called ZeroPage Homebrew that usually streams twice a week. They exclusivley play homebrews and the devs are usually in the chat. They were 2600 only for a long time but recently started including 7800 and 8-bit.
- PostThisTooFast 5y agoSounds like the Atari 8-bits (except for the Ethernet). Oh, except the Atari peripheral port was actually better than USB; Atari peripherals could be daisy-chained.
- cubano 5y agoBack in the mid 80'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. 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's we now use of course), my very first working "computer" 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. 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. 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. 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't even my fault! 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't Intel), so the day of me showing him my work wasn'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. 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't have to waste cycles juggling data and memory addresses at all. [edit] wow...sorry this was such a long post! I just got lost in remembering old times...
- whartung 5y agoSome folks may be also interested in his latest endeavor. https://github.com/fachat/MicroPET https://github.com/fachat/MicroPET It's quite clever. At it's core, it's PET clone. But deeper, it's not just a PET clone, but 4 other machines in the PET series. On top of that it's based on a 65816, has B&W 640x480 VGA graphics, as well as several different text modes. As a cherry on top, it can run 4 "virtual" PETs simultaneously. This is much closer to a machine that I'm interested in. Fundamentally, a fast 65816 with memory (at least 1MB), UART, and access to a "full speed" USB bus (12.5Mbits), which it boots off of (it could also boot off of an SD Card). 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.
- amrcnimgrnt 5y agoThats really cool. I feel that modern computers are so powerful that they are productivity sappers. For me to be productive, I think a system with low latency but otherwise very limited would be the best. It's like what a friend said in college about getting a dual monitor setup: "Your productivity doubles until you realize you can watch movies on the other one"
- userbinator 5y agoIt'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.
- jaclaz 5y agoAs 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: https://spritesmods.com/?art=picframe&page=1 https://spritesmods.com/?art=picframe&page=1 I often wonder why the manufacturers - besides the photoframe usage - don't sell an "open" version with some toolkit to let people have fun with these devices.
- krallja 5y agoWestern Design Center (who still manufactures 65C02S’s) has a series of development boards based on the 6502: https://www.tindie.com/stores/wdc/ https://www.tindie.com/stores/wdc/ Of course, they’re way more expensive than an Arduino Mega, which is approximately as powerful…