Git Product home page Git Product logo

6502-program-1's Introduction

6502-program-1

Learning how to write assembly language for the 6502 microprocessor.

What is 6502

The 6502 is an 8-bit microprocessor designed by MOS Technology in 1975. It's low cost enabled many affordable home PC's to be built. It can be found in devices such as the Atari, Commodore, and NES.

Programs

Developer Tools

Assembler

The assembler converts assembly language into machine code, resulting in a bin file, often put onto a ROM chip that the CPU retrieves its instructions from.

  • Web: 6502 Assembler
    • Remove comments from asm file
  • Windows: Use asm6 executable in ./tools/asm6. View readme
    • Command: .\tools\asm6\asm6.exe .\src\code-injection\main.asm
    • Creates .\src\code-injection\main.bin to put on your ROM.
    • Fork A fork of loopy asm6 assembler asm6f
  • Mac/Windows/Linux: vasm - a portable and retargetable assembler

Syntax Highlighting

This project contains asm files written in assembly language using the 6502 instruction set. Syntax highlighting makes it easier to view the file by applying color to specific commands and values.

  • Atom: Install the language-6502asm package for syntax highlighting on .asm files.

Hex Viewer

A hex editor is useful for viewing and editing bin files created by the assembler.

Virtual Machine

  • Web virtual 6502
    • Ignores entry specified at 0xFFFB, 0xFFFC. Starts at address 0x0000

Tutorial Videos

I'm following Ben Eater's tutorial videos on YouTube for two of his kits.

  • 6502 Computer Kit
  • Kit 1: Clock module.

555 Timer

6502 Kit

Personal Note

I've punched in machine code for:

This is my first experience writing in assembly language directly. In the past I've written machine language out on paper and flipped switches to enter programs manually for an 1802, and emulated 8080 CPU chips. I've only worked out the assembly in reverse afterwards while writing documentation on an 8800. Note that my Light Switch program on GitHub was published within a markdown file rather than an asm file.

I grew up with, and still have an Atari 400 with 16k of ram. I was unfamiliar with how to write to it in machine language. I am repairing it and hope one day to write programs in assembly. In the mean time, I've purchased a few chips on ebay and a 6502 kit.

6502-program-1's People

Contributors

lewismoten avatar

Stargazers

 avatar

Watchers

 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.