7 ms·
Visual6502 Remix
- microcolonel 7y agoReally great performance, buttery-smooth. Excellent job! Looking at the 6502, I've got to wonder if today's most powerful Place 'n Route tools could make any significant improvement to it.
- ngcc_hk 7y agoTerminator 1 has it.
- yodon 7y agoI'm not sure if why you're being voted down. I still remember sitting in the theater realizing that was 6502 assembler scrolling across the screen.
- bunnie 7y agoDoubtful - the 6502 had something like one poly and one metal routing layer. It was hand routed by a human; balancing the use of poly, metal and diffusion is pretty tricky and requires bending a few rules that would otherwise constrain an autorouter in order to get everything to fit.
- fpgaminer 7y ago> It was hand routed by a human And let's be clear, it was hand routed in both senses of the word. The layout engineers cut the mask by hand, crawling around on the table sized photomask.
- sp332 7y agoGoing the other way: https://c74project.com/ https://c74project.com/ or even https://monster6502.com/ https://monster6502.com/ Edit: Western Design Center manufactures a pin-compatible DIP-packaged 6502. https://www.mouser.com/ProductDetail/Western-Design-Center-WDC/W65C02S6TPG-14/?qs=sGAEpiMZZMvu0Nwh4cA1wSNu7hWmGrIdvYIw7nZ2DMI= https://www.mouser.com/ProductDetail/Western-Design-Center-W... I couldn't find any pictures or info about what's inside though.
- rosybox 7y agoI love this.
- deelowe 7y agoI wish they'd release the monster6502 as a kit or at least release the brd files so others can make/improve on it.
- duskwuff 7y agoWith 4,769 surface-mount components and somewhere on the order of 16,000 solder joints, it's well outside the realm of what you can assemble at home.
- monocasa 7y agoIDK, it's meticulous work I'll give it that, but more impressive computers have been built component by component. Just take your time, test each piece as you go, and don't develop an ego and you'll be fine.
- deelowe 7y agoSome of us have reflow ovens, stencils, and past. It's not that hard with SMD. Through hole is where it gets time cosuming.
- jah 7y agoFor those interested in the 6502, Ben Eater is starting a new YouTube series in which he builds a computer around a 6502 chip. https://eater.net/6502 https://eater.net/6502
- matheusmoreira 7y agoAn up-scaled replica of the 6502 with a lot of LEDs to visualize the state of the processor while it works: https://monster6502.com/ https://monster6502.com/
- colordrops 7y agoLove it. Would be willing to purchase one of these to use as a teaching tool.
- saagarjha 7y agoQuestion: what is the code for/from?
- NobodyNada 7y agoIf you're referring to the code that's loaded into memory location $00 and run when the simulator starts up: it doesn't look like it's anything particularly interesting, just a simple loop to exercise the simulator: LDA #$00 ; A=0 loop: JSR sub ; call subroutine JMP loop ; infinite loop sub: INX ; increment X register DEY ; decrement Y register INC $0F ; increment memory location $0F SEC ; set carry flag ADC #$02 ; A += 3 (add 2, with carry) RTS ; return from subroutine
- saagarjha 7y agoYeah, it didn't look like it was doing anything useful so I was curious if it was a reference to something…
- NobodyNada 7y agoI very much doubt it's a reference to anything. It doesn't appear to have a useful purpose besides demonstrating/exercising a few of the important components of the processor: it performs operations using the registers, the stack (JSR/RTS), memory (INC), and the ALU (ADC). A quick search through GitHub shows that this code is unchanged since the initial commit of the original Visual6502: https://github.com/trebonian/visual6502/blob/4d8da5b680216dcbe5705ecb831821cd6b81e479/macros.js#L2 https://github.com/trebonian/visual6502/blob/4d8da5b680216dc...
- flohofwoe 7y agoI just took the original testing code from http://visual6502.org/JSSim/index.html http://visual6502.org/JSSim/index.html, also to confirm whether the simulation and visualization works. I don't think it has any significance except testing a few things like memory read/write access, whether the stack works etc...
- djmips 7y agoNice, is it about ~6 times faster?
- airstrike 7y agoIt's about ~6 times cheaper.
- mrcactu5 7y agoif all I want to to is build a Super Mario clone is the knowledge of the 6502 assembly language still necessary ?
- saagarjha 7y agoNo, you can just make it in your language of choice. If you'd like to emulate it then you'll probably need to learn it.
- monocasa 7y agoIt'd be helpful, but not strictly necessary. Here's an extremely well commented disassembly of Super Mario Bros. https://gist.github.com/1wErt3r/4048722 https://gist.github.com/1wErt3r/4048722
- hombre_fatal 7y agoCan someone explain what we're looking at?
- GaryNumanVevo 7y agoSure! It's a 6502 CPU [0]. The visualization is showing the signals traveling through the components, as laid out in the die, which looks like this [1]. It looks like it's using the CMOS interpretation which is a layer below typical logic gates. The simulator is running a simple loop and you can step through and see all the registers, ALU, and whatnot running. [0] https://en.wikipedia.org/wiki/MOS_Technology_6502 https://en.wikipedia.org/wiki/MOS_Technology_6502 [1] https://commons.wikimedia.org/wiki/File:MOS_6502_die.jpg https://commons.wikimedia.org/wiki/File:MOS_6502_die.jpg
- NobodyNada 7y agoThe MOS 6502 [0] was an 8-bit CPU that powered many systems from the 70’s and 80’s, including the Atari game consoles, Commodore 64, Nintendo Entertainment System, and early Apple computers. It could also be considered the ancestor of the ARM architecture. Visual 6502 [1] is a transistor-level simulation of the 6502, written in JavaScript. It allows you to investigate how the real hardware behaves in response to some input, and it makes it possible to investigate the circuitry responsible for this behavior. It has proven an invaluable resource in recent years for developers and emulator authors to nail down and document all the weird quirks of their 6502-based hardware. The simulator core is also very useful for modeling other 80’s hardware, such as the NES’s video and audio systems. Looking at this project’s GitHub [2], it appears this is a rewrite of Visual 6502 that compiles into WebAssembly, resulting in vastly improved performance compared to the original JS implementation. [0]: https://en.wikipedia.org/wiki/MOS_Technology_6502 https://en.wikipedia.org/wiki/MOS_Technology_6502 [1]: http://www.visual6502.org/JSSim/index.html http://www.visual6502.org/JSSim/index.html [2]:https://github.com/floooh/v6502r https://github.com/floooh/v6502r
- jeffalyanak 7y agoTo add a bit of anecdotal context to how significant the performance boost is, I didn't even have to look at the source code to know that this runs far, far faster than the original.
- rlp 7y agoThe author of this also created the excellent Sokol cross-platform graphics/sound library, which is being used here. https://github.com/floooh/sokol https://github.com/floooh/sokol
- FraKtus 7y agoThank you for posting this. sokol_gfx.h looks really handy!
- integricho 7y agoOff topic: can already assembled 6502 kits (i.e. single board computers) be bought anywhere, just like this one for z80 https://shop.mcjohn.it/en/diy-kit/22-33-kit-z80-mbc2.html#/13-kit-assembled https://shop.mcjohn.it/en/diy-kit/22-33-kit-z80-mbc2.html#/1... ?
- Keyframe 7y agoBring your own chip(s) https://icomp.de/shop-icomp/en/produkt-details/product/c64-reloaded-mk2.html https://icomp.de/shop-icomp/en/produkt-details/product/c64-r... or get and old one. It’s 6510, which is the same thing.