GithubHelp home page GithubHelp logo

bonimy / smas-disassembly Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 17.31 MB

Disassembly of the Super Mario All-Stars ROM

Assembly 100.00%
super-mario-bros mario super-mario all-stars super-nes snes nintendo 65c816-asm asm

smas-disassembly's Introduction

SMAS DISASSEMBLY

This is a project where I disassemble and document Super Mario All-Stars.

There are plans to make this disassembly assemble-able in either xkas or asar. The assemble-able version is in the "Assembly" directory, however, it is not perfect and adding/removing code may break the ROM entirely.

TAGS

There are a few 'tags' used throughout the disassembly:

  • "TODO": Code which should be looked into in terms of documenting and/or correct disassembling
  • "INVALID": Most likely unused code which does something invalid (e.g. storing to ROM or (polymorphically) jumping to illogical addresses)

WHAT'S LEFT TO DO (as of February 6th, 2017)

  • Give absolute ROM addressing opcodes of banks 26-2A labels
  • Give ROM data DMA tables labels
  • Find DMA codes and label them appropriately
  • Give ROM data their appropriate data size (db/dw/dl/dd)
  • Give absolute and relative ROM access tables labels and their respective math
  • Finalize assemble-able version and document that version instead
  • Give essential labels of assemble-able more sensible names

CODE LOCATIONS

Game codes are located in the following banks:

  • $008000-$02FFFF: Presents screen, hall screen, game select screen
  • $038000-$0CFFFF: Super Mario Bros. 1
  • $0D8000-$10FFFF: Super Mario Bros. The Lost Levels
  • $118000-$15FFFF: Super Mario Bros. 2
  • $208000-$2AFFFF: Super Mario Bros. 3

NOTES TO SELF

  • Regex for finding 16-bit ROM access: (CMP|CP[XY]|LD[AXY]|ORA|AND|EOR|ADC|SBC|BIT|TSB|TRB|ASL|DEC|INC|JMP|JSR|LSR|ROL|ROR)( $)([8-9A-F][0-9A-F]{3})
  • Regex for finding 24-bit ROM access: (AND|LD[AXY]|ORA|ADC|SBC|EOR|TSB|TRB|JSL|JML) $([0-4][0-9A-F][8-9A-F][0-9A-F]{3})
  • Regex for finding 24-bit ROM addresses: $([0-4][0-9A-F][8-9A-F][0-9A-F]{3})

smas-disassembly's People

Contributors

bonimy avatar ersanio avatar isofrieze avatar

Stargazers

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