Code Monkey home page Code Monkey logo

65c02_sbc's Introduction

8-Bit 65C02 based Computer

This repository contains assembly code for the 65C02 based 8-bit computer I am building on a breadboard. I started out writing the assembly and compiling it using vasm because it is portable to many different CPUs including the Z80 which I also program for. I recently switched to using cc65 because it allows me to specify the memory layout of this machine and ships with the memory layouts of many more machines like the VIC20, C64, Commander X16, Atari consoles, etc.

The breadboard version of this computer is based on the design by Ben Eater. If you are interested in following along, I highly recommend his video series.

Computer build on 2021-05-06

After completing the breadboard version, I found an updated version with two VIA chips, a 6551 based ACIA chip for serial communications and a PS/2 keyboard port with an ATtiny4313 based keyboard controller by Dawid Buchwald who writes about the designing the computer on Hackaday.io.

I had boards made by PCBWay.com and built a version of the computer based on David's design. Much of the software here started out being written by David.

Computer build on 2021-05-28

Memory Map

Segment BE6502 DB6502 Comment
RAM 0x0000-0x3FFF 0x0000-0x7FFF
VIA1 0x9000 Connected to keyboard/LCD/blink LED in my build
VIA2 0x6000 0x8800 Can be used to run Ben's programs
ACIA 0x8400
ROM 0x8000-0xFFFF 0xA000-0xFFFF First 8K are not accessible, but need to be burned to the chip

16x2 LCD addressing scheme

0x00 0x01 0x02 0x03 ... 0x0F
0x40 0x41 0x42 0x43 ... 0x4F

20x4 LCD addressing scheme

0x00 0x01 0x02 0x03 ... 0x13
0x40 0x41 0x42 0x43 ... 0x53
0x14 0x15 0x16 0x17 ... 0x28
0x53 0x54 0x55 0x56 ... 0x68

65c02_sbc's People

Contributors

rprouse avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.