Code Monkey home page Code Monkey logo

converttoacme's Introduction

Convert To ACME

Convert 6502 Assembler source from

  • 2500AD Cross Assembler
  • Commodore Macro Assembler
  • Programmers Development System (PDS)
    to ACME Cross Assembler.

Written in .NET Core 3, runnable on Windows 10, MacOS, and Linux

This is a simple line-by-line converter designed to read 6502 Assembly Language source and emit source that can be assembled using the ACME cross assembler.

Visual Studio Code has an excellent extension for working with the ACME Cross assembler. ACME VS Code Extension

In addition, this template Ingo Hinterding Assemble 6502 in VS Code makes it easy.

The conversion does not support all features, just enough to get my source code translated. The most signification limitations are:

  • Very little support for macros, only simple parameterless macros in PDS right now
  • The translator has no knowledge of the state of conditionals
  • The ACME cross assembler has no support for concepts such as PUBLIC and EXTERNAL
  • BIT7 directives are supported for strings, but no DC support

Converting .ASM files

convertoacme.exe INPUT.ASM conversion.json > OUTPUT.ASM

Or using a simple batch: for %%i in (*.ASM) do converttoacme.exe %%1 conversion.json > converted%%1

conversion.json

See the samplesetting folder for some simple examples

{
"Format":"AD2500 | MADS | PDS",
"Modules":[
  {
    "File":"FILENAME.ASM",
    "abr":"XX", // Prefix to uniquify a colliding symbol
    "Renames": [
      "SYMBOL_TO_UNIQUIFY", . . .
    ]
    }, . . .
],
"Macros":["MacroName", . . . ],
"EmitOriginal":true // Emit a copy of modified lines as a comment
}

Other helpful tools

If you have a binary of your original program, comparing the original to ACME's build in a good hex diff tool can really help.

VBinDiff by Christopher J. Madsen helped me a lot

converttoacme's People

Contributors

jefflomax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.