3 ms·
This is a fun coincidence, considering I was just about to assemble BASIC for a custom 6502 system. I suppose it is just that, a coincidence, but it gives me a
by fpgaminer 12y ago
This is a fun coincidence, considering I was just about to assemble BASIC for a custom 6502 system. I suppose it is just that, a coincidence, but it gives me an excuse to rant about my silly project for a moment.
To keep myself sane lately, I've been working on a fun hobby project. It's an HTML5 game. You pilot a spacecraft, but the only way to control the spacecraft is through a 6502 based computer. So all flight controls have to be coded yourself on the machine. There are hardware modules for radar, engines, weapons, etc, but you need to write software to control them all. I haven't fleshed out all the ideas yet, but I get a strange kick out of the idea of piloting a spacecraft with a Commodore 64.
So far I've got an asm.js, cycle accurate implementation of a 6502, a bus system which is roughly a combination of the C64 and Apple IIe, and 320x200 4 color display. Just started working on the radar hardware subsystem, and was going to try assembling C64 BASIC for it today. Which is why seeing this article on Hacker News was a neat surprise.
- lanaius 12y agoTo what degree would you say your idea was influenced by Notch's cancelled 0x10C? Not a criticism, it's actually a game I truly want to see made.
- fpgaminer 12y agoOh significantly so, but more recently because of watching the BBS Documentary by Jason Scott (highly recommend). But I don't intend to finish this project as a game; it's just a creative outlet. I've always been fascinated by the magical simplicity of the 6502 and related machines, even if they were a few years before my time. A few years ago I even implemented a logic accurate 6502 in Verilog for an FPGA devboard. Working with the 6502 is peaceful in a way; it lies in stark contrast to the towering complexity we as engineers deal with in the present computing age. I wonder what became of 0x10C after Notch dropped it. Has anyone picked it up and kept working on it? Alternatively, I know Space Engineers is similar in kind, and was quite a bit of fun to play. It just doesn't (or didn't?) have any computing component.
- roywiggins 12y agoI wrote a simple FORTH-like compiler/interpreter for a 0x10C CPU simulator. It was a really fun little project, and completely doable with my tiny amount of prior assembly experience. Very peaceful, like you say.
- Zardoz84 12y ago>I wonder what became of 0x10C after Notch dropped it. Has anyone picked it up and kept working on it? Alternatively, I know Space Engineers is similar in kind, and was quite a bit of fun to play. It just doesn't (or didn't?) have any computing component. There is some successor projects. Perhaps the most famous is Trillek at trillek.org .Forums are dead, but IRC is pretty active at freenode #project-trillek Actually we have a full computer working with a more realistic behaviour, using TR3200 CPU (RISC like 32 bit cpu), with screen, keyboard, floppy drive, timer, RTC, beeper, hardware "random" number generator, etc. Tehre is two assemblers for it, WaveAsm and VASM. Also, SmallerC can output assembly code for it, and there is other C compiler that would have TR3200 backend (qcc , D language write C compiler). A BASIC interpreter for it would very appreciate (or FORTH or any other easy learn language) Links : Computer specs : https://github.com/trillek-team/trillek-computer https://github.com/trillek-team/trillek-computer Computer implementation library with a not very friendly emulator and a few tools (I'm working in an user friendly emulator using the lib): https://github.com/trillek-team/trillek-vcomputer-module https://github.com/trillek-team/trillek-vcomputer-module WaveAsm : https://github.com/Meisaka/WaveAsm https://github.com/Meisaka/WaveAsm VASM : http://sun.hasenbraten.de/vasm/ http://sun.hasenbraten.de/vasm/ SmallerC : https://github.com/alexfru/SmallerC https://github.com/alexfru/SmallerC Toolkit recopilatory (wip) : https://github.com/trillek-team/computer-toolkit https://github.com/trillek-team/computer-toolkit PD: I forgot to mention that we have a simple firmware that detect devices, prints some information, try to bootup from floppy, and have a machine code monitor that is a clone of Woz's monitor ? https://github.com/Zardoz89/trillek-firmware https://github.com/Zardoz89/trillek-firmware
- Zardoz84 12y agoCommunity is working on a few successor projects. Search for Trillek
- Zardoz84 12y agoHave you a link to see it ? I have curiosity. Also, you should check FUZIX (unix clone for 8 bit machines), there is some working to get it working on a 6502 cpu