r/homebrewcomputer • • 10h ago

ca69: new assembler tool chain for 6809/6309

7 Upvotes

I'm happy to announce ca69, an open-source assembler toolchain for the Motorola 6809 and Hitachi 6309. In my work with the cc65 toolchain for the 6502, I have really come to appreciate its clean syntax, powerful directives, and its incredibly flexible linker that makes it really easy to create system images for virtually any hardware configuration. Imitation being the most sincere form of flattery, ca69 uses ca65's source syntax and ld65-style linker configurations, extended to cover the full 6809 and 6309 instruction sets. The toolchain includes the ca69 assembler and the ld69 linker, which can output binary images, S-records or Intel HEX, along with map, label and debug files. It also includes utliities for creating object libraries, dumping object files, etc.

For older code, tr69 converts sources written for as9, a09, or FLEX's ASMB into ca69 source that you can subsequently modify and maintain in a modern form. Starting with the CoCo ROM sources it produces byte-for-byte identical binary objects to what is produced by the a09 assembler. ca69 can also assemble those older dialects directly with --dialect, without saving the translated result.

In the interest of full disclosure, I want to note that generative AI has been used extensively in producing this work. If this bothers you, please just disregard this post and the product. In more than four and half decades in this field, I've written many interpreters, compilers, and assemblers, for many different languages. I could write an assembler and linker for this machine architecture myself, without AI assistance. But at my age, I don't want to spend my time writing cross-development tooling for my beloved old hardware. I want to spend my time writing code for that beloved old hardware itself.

ca69 is written in C11, builds with CMake, and runs on macOS, Linux and Windows (via WSL2). It comes with a full user manual (online and as a PDF) and a VS Code extension, also on Open VSX, that adds syntax highlighting, completions and builds. The code is MIT-licensed at https://github.com/ceharris/ca69. Feedback, bug reports and contributions are welcome!


r/homebrewcomputer • • 1d ago

The Helio 2400 Architecture

Thumbnail
github.com
3 Upvotes

My first real hardware project. It's not perfect, but i'm pretty proud of it. Now I just have to... y'know... get an FPGA to test it on. And rewrite my entire emulator to agree with the RTL implementation, since I built my emulator before I built the CPU itself... sigh.


r/homebrewcomputer • • 1d ago

roscoOS : un OS 68k fait maison avec BASIC, FAT et inspiration OS-9

Post image
4 Upvotes

Bonjour à tous,

Après 6 mois de développement en C et Assembleur, je suis fier de partager l'avancement de roscoOS pour le ROSCO_m68k (Motorola 68000).

Au programme : support FAT32 sur carte SD, un shell, un éditeur de texte, un interpréteur BASIC, et un gestionnaire de processus simple. C'est un projet passionné pour tous ceux qui aiment mettre les mains dans le 68000.

Le projet est open-source (licence MIT) et en constante évolution. N'hésitez pas à jeter un œil au code, à tester les binaires ou à me donner vos retours !

🔗 Lien GitHub : https://github.com/hfp06/roscoOS-68k
🎥 Vidéo de démo : https://github.com/user-attachments/assets/0909dd4e-1270-47a1-96ee-b5639531fb54


r/homebrewcomputer • • 1d ago

Cyberdeck build in grenade box

Thumbnail gallery
1 Upvotes

r/homebrewcomputer • • 5d ago

I'm building an 8-bit / 16-bit hybrid computer emulator with its own custom architecture and language, called Oblivion64.

0 Upvotes

r/homebrewcomputer • • 6d ago

Need help designing the control unit for my CPU design

6 Upvotes

Sorry if this is the wrong place to ask about this, I just don't really know where else I should post this.

Context:
I am building my own CPU on breadboards using 7400-series ICs, with my own custom ISA. See here for the spec if it helps at all.

Question:
I'm in the process of creating the base circuits in Logisim for easy testing, and the part of the project I'm at now is implementing the control unit that takes the bytecode from the program ROM and pulls high the necessary control lines. To be frank, I have no idea how to do this beyond a couple loose ideas. If y'all could provide any sort of direction, like links to videos or a better subreddit for this sort of question, I would be massively grateful.

Thank you for any help you can provide!


r/homebrewcomputer • • 13d ago

65C916 - Progress Report

Post image
107 Upvotes

r/homebrewcomputer • • 12d ago

beginner here, wanting to make a 2 Bits CPU and 1 byte of ram

15 Upvotes

i am ABSOLUTELY new to the world of self made tech, i barely know how to use logisim and i do NOT even know how to build something irl out of breadboards.

however, i would like to start learning all of this just for one project, making a computer with a 2 Bits CPU (risc core i think?) with one byte of ram.

and i just want it to display random text written in katakana

how hard will this be?, and how much time will it take?, as i said. i'm starting from 0.


r/homebrewcomputer • • 17d ago

question about the clock

Post image
48 Upvotes

hello there, so far for my z80 computer i made a corcuit that and have a question, i want to use a separate clock for my modules and i will be using a 10Mhz cmos z80 with at28c256 eeprom and as6c62256a ram and the eeproms access time is 150ns. So my question is what type frequency clock should i use? i have 4 mhz crystal and 5-6 mhz oscillator


r/homebrewcomputer • • 17d ago

The UnGPU: A TTL text-based GPU

Thumbnail
github.com
4 Upvotes

r/homebrewcomputer • • 17d ago

New 6502 + others computer

Thumbnail
reddit.com
1 Upvotes

r/homebrewcomputer • • 24d ago

Pugputer 6309 is turning out nicely

Thumbnail
gallery
159 Upvotes

Hi Everybody. For the last few years, I've been working on a computer based on a Hitachi HD6309, a 1980's CMOS update of the Motorola MC6809. I've had several revs of hardware that I designed, built and tested, but software and emulation had always been slow-going and kept getting put off... until recently. Anyways, here's the

NEWS!

  • Just added a C compiler that runs on the machine!
  • Decent subset of C libs (stdio, math, stdlib)
  • Inline assembly
  • Has libraries for game dev

    • tile-maps, sprites, drawing bitmap graphics (works with built-in tilemap editor)
    • music and sound effects player (works with built-in music editor)
    • keyboard, gamepad, mouse
    • RAM banking for code and data
    • Demo C file showing off these features

SPECS

  • CPU Card: HD63C09P at 3.58 MHz, 1MB SRAM, 32K Flash, UART @ max 19200bps

    • Can run standalone with serial terminal, S-Record upload, via 4K BIOS
  • Old Video/Sound Card: Yamaha V9958 (video chip used in MSX 2+), YMF-262 OPL3 (Same synth was used in Sound Blaster 16)

    • Graphics and music demos
  • New Video/Sound Card: RP2350B DVI/HDMI, 8MB SRAM, 16MB Flash, Same OPL3 chip, SD Card.

    • Three tile-map layers, each at 320x240 or 640x480
    • 16 or 256 colors per tile, 8x8 or 16x16 sizes
    • 128 sprites in all modes, with 32 per horizontal line
    • Bitmap gfx modes
    • Text mode at 80x30 and 80x60 with reprogrammable font, treated as a tilemap layer.
    • USB Host for Keyboard, Mouse, and gamepad.
    • BASIC extended to support these features, with examples
    • Yes, it feels like cheating to use the modern chip, but it's working really well.
  • VIA/SD: WD65C22S VIA, ATMEGA328P, SD card

    • This card superseded by the new video card, but this one is more retro

Schematics, pictures:

https://github.com/caiannello/Pugputer6309

SOFTWARE

  • DOS-Like shell, FAT16 filesystem on SD card
  • Fullscreen text editor via UART (if no video card attached) or video console
  • 6309/6809 Assembler and linker running on the machine
  • MS Extended BASIC with additions for good graphics, sprites, file operations
  • VGM music player for OPL3 sounds
  • Tilemap editor with mouse/keyboard support (I want to add a scripting language for making Pugputer games directly. For now, assembly language examples included.)
  • Tracker-style Music player/editor for OPL3 with a couple hundred 2-op and 4-op general midi instruments
  • Parallax-scrolling and music demo, with all assets editable using the above tools.
  • 6309 assembly source for all software (BASIC, DOS, assembler, tilekit, songkit, editor, demos, etc.) is available on the SD card for customizing the system directly on the system

VIBE-CODED EMULATOR:

  • Simulates CPU Card, Video/Music Card
  • Has an SD card image with the above software
  • Pretty good parity with the real thing

    • so you can try it for yourself without building anything
  • Windows/Linux x86_64 builds available in releases

    • Build instructions for other systems

https://github.com/caiannello/Pugputer6309_Emulator


r/homebrewcomputer • • 24d ago

feel like I'm getting somewhere 68000 emulator and micro bios

Thumbnail
reddit.com
4 Upvotes

yes its virtual... but it need not be.....


r/homebrewcomputer • • 25d ago

A 16-bit computer made from ~900k NAND gates that runs its own OS with a file system, text editor and assembler

238 Upvotes

This is a computer built entirely from NAND gates in Gate Singular, a logic simulator game. In the video it assembles a Hello World on the machine itself, and then runs it.

Specs:

- 16-bit CPU with 24-bit instructions (8-bit opcode + 16-bit data)

- 30 instructions (206 if you count the variants of where operands come from and where the result goes)

- 1 KB of RAM and 24 KB of ROM in a shared address space, 2 registers, a 16-level stack, an 8-entry keyboard event queue, and a 64x64 screen with write-only VRAM

- Every instruction, including multiplication and division, runs in one clock

- Everything is made from 909191 NANDs. On top of that there are only buttons/toggles/LEDs and clock sources for temporal completeness. Nothing else is used.

The OS lives in the 24 KB ROM. It has a file system (in RAM), a text editor, memory management, an assembler to build new programs, and an OS API that those programs can use: text printing, memory allocation, file system access, keyboard input, etc.

By the way, I made the simulator game too (link in the comments).

I made it because I wanted one without the "1-tick delay per gate", and with full support for feedback between gates (e.g. so you can build proper D-latches from NANDs).

I'm happy to answer any questions about the CPU or the simulator.


r/homebrewcomputer • • 25d ago

I’m building a Raspberry Pi based Hayes WiFi modem to bring the BBS experience back

Thumbnail gallery
28 Upvotes

r/homebrewcomputer • • 26d ago

Mandelbrot Fractal set for Homebrew Z80 with DEC VT510 Terminal

Thumbnail gallery
48 Upvotes

r/homebrewcomputer • • 26d ago

could this circuit work? im trying to get bare minimum to work

Post image
21 Upvotes

this design is based on doctor volt on youtube


r/homebrewcomputer • • 27d ago

Been testing my 8-bit binary architecture with FPGA tools. Looking for some technical feedback.

Post image
1 Upvotes

r/homebrewcomputer • • 28d ago

Turning a I-400 controller into a computer

Thumbnail
gallery
29 Upvotes

I recently took this apart to create a functional schematic of it as of to my knowledge none currently exist. I also plan to eventually use a separate Z80 that way I can make the Z8 on it can easily communicate. My goal is to try to make a CP/M computer using the shell and hardware of this + some stuff of my own
Here are some pictures of the 4 main boards

If this project goes well I might release the schematics I make online, though I’m trying to be as nondestructive as possible to its going to be hard in some areas


r/homebrewcomputer • • 27d ago

Help finding GreenArrays GA144 DevBoard

Thumbnail reddit.com
2 Upvotes

r/homebrewcomputer • • Nov 01 '26

retro computer on a Pico W with a 20x4 LCD: its own BASIC

Thumbnail gallery
129 Upvotes

r/homebrewcomputer • • Nov 01 '26

Any Suggestions For What to Fill Remaining Registers With?

4 Upvotes

I'm currently working on a PCB Design 8-Bit computer based partly on the design of Mattbatwings' Minecraft CPU design, and making a few changes that better fit the physical CMOS chips, such as making the register file memory mapped with special functions, the specs are as follows:

  • Powered by USB-C
  • 65kHz Clock (Intended to allow a Timer division in seconds)
  • 65536x16-Bit Single Cycle Instruction Memory
  • On-Board and External Memory Writing
  • 65536 Bytes of RAM, excessable in 256x256 Byte Memory Banks
  • ALU with Logical Addition and Subtraction
  • Bitwise NOR, AND, XOR, and Right Shift
  • Immidiate Add and Load Instructions
  • Indirect Instruction Jumps, and Conditional Branching
  • Conditional Flags for Carry Detection and Zero Detection
  • 4 Layer Callable Subrutines with a 4-Layer Hardware Stack
  • 16 Register Register File with:
  • (0-3) General Operation Registers (Readable, Writable)
  • (4) Parallel Input Register with 4 Output JST connectors (Readable)
  • (5) Serial Input Register with Output Clock and Latch Signal (Readable)
  • (6) 16-Bit Timer Lower Byte (Readable)
  • (7) 16-Bit Timer Upper Byte (Readable)
  • (8a) Indicator Flags CNVZP (Readable, Writable*) (7-3)
  • (8b) LCD Control Signals E, RW, RS (2-0) (Readable, Writable)
  • (9) ST7920 128x64 LCD Display Data Bus Register (Writable)
  • (10) Variable Clock frequency Generator (Intended for Audio)
  • (11) Unassigned as of now
  • (12) Serial Output with External Latching and Clock Support (Writable)
  • (13) Parallel Output Register With 3 JST Connectors (Writable)
  • (14) Memory Address Register to Determine which of the 256 RAM Banks is read (Writable)
  • (15) PRNG Generator Register (Readable)

I'm approaching the final design and was wondering what I should put into the final register space? I though about adding a SPI dedicated register but I'm unsure how to incorporate such a thing in a single cycle.


r/homebrewcomputer • • Oct 31 '26

I built an Apple II+ from 21,180 transistors in a browser simulator — it boots DOS 3.3 and runs VisiCalc

348 Upvotes

Not a physical build, so I hope it's okay here but everything is wired by hand, starting from single transistors.

Two transistors make a NOT gate. From there I built the gates, latches, adders, the ALU, and finally a full NMOS 6502 (20,524 transistors). The gate-level CPU passes the Harte 6502 test suite (about 1.5 million tests). Around it I wired the rest of the Apple II+: address decoding, RAM, ROM, soft switches and video.

It runs Applesoft BASIC and, in general, Apple II programs anything you can load into memory as a binary (.obj) file. VisiCalc is in the video. The video is 4 days of building, sped up, with no voiceover.

A few honest notes:

– Simulating 21k transistors at switch level is slow, so to run software at full speed the simulator swaps the CPU for an interpreter that is checked against the gate-level one. Everything else stays the same circuit.

– The ROM and program files are the original Apple ones, loaded by me — they don't ship with the simulator.

– There's no disk drive in this video. I built a Disk II controller separately — that's another story.

The simulator is free and runs in the browser, no sign-up: https://cs.khanin.info

Happy to answer questions about how any part of it works.