Giter Club home page Giter Club logo

dis64's Introduction

Dis64

Disassembler for C64 and VIC20 - 6502 assembly, outputs in Kick Assembler format.

Requires NodeJS installed

The disassembler will attempt to do its best to detect VIC Bank allocation and Screen buffers, adding labels where it thinks they are used. Additionally it will add system labels where detected and provide a syslabels include file.

It will also try to detect and ignore dead code (code that doesnt end in RTI, RTS, JMP, JSR or Branch instructions)

Change Log

2020-10-06 : Coded by Shallan50K (https://github.com/smnjameson),
2022-03-06 : VIC20 modification by OldSkoolCoder (https://github.com/OldSkoolCoder)

Setup:

npm install

Usage:

npm run dis64 -- --in %infile% [Options]

Note the additional -- IS required in order to pass parameters via NPM

Parameters:

--in %File%

The file to disassemble, can be any binary file.

--out %Folder%

The output folder for the disassembly files, if the folder does not exist it wi ll be created.

--prg

Signifies that the input file is a PRG and uses its load address to determine the base address for disassembly. Without this flag the disassembly will assume a base address of $0000

--basic %address%

If provided will insert a BasicUpstart2 directive into a patched segment pointing to the given address, useful if you know the entry point of the program and that there is free space at $0801 to add a BASIC SYS command. Use JS hex format, e.g. 0x0900.

--range %startAddress-endAddress%

If provided limits the disassembly to the given memory range, anything falling outside this memory range will be treated as simple byte data. Use JS hex format as follows: --range 0x2000-0xcfff

--model %Commodore Computer Model%

if provided configures the dissaembly to five the correct System Labels for the computer model provided. Use one of the following options :
--model c64 <-- Defaulted if not provided
--model vic20 <-- Unexpanded VIC20
--model vic203k+ <-- VIC20 with 3K expansion
--model vic208k+ <-- VIC20 with 8k expandion

Usage Example:

npm run dis64 -- --in base.prg --prg --out ./MyGame --basic 0xc000 -- model c64

Disassembles a prg file and outputs the results to a folder called MyGame inserting a BasicUpstart2 directive to launch the code from BASIC

dis64's People

Contributors

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