Giter VIP home page Giter VIP logo

ulas's Introduction

ulas

Unlink's light assembler is a SM83 assembler without any external dependencies written in C99.

Table of content

Installation

To build this program you will require a recent C compiler, and make.

make # to compile all targets 

Usage

License

This program is distributed under the terms of the MIT License.

Contributing

ulas's People

Contributors

unlink2 avatar

Watchers

 avatar

ulas's Issues

Expression mode

It would be nice to have expressions be implemented in reverse polish notation for now for simplicity's sake...
but maybe one day if there is a demand we can introduce a directive that will allow infix expressions such as .exprinfix
and .exprpn.

Make the assembler architecture independent

The current assembler has a hard-coded definition for SM83 which is fine, but it should be possible
to make it more platform independent without too much work since the opcodes are all in a table already.

Add disassembler

A disassembler should have the following features:

  • Allow partial disassembly of an input file
  • Display a call graph
  • Generate symbols on the fly for all jumps and calls
  • Allow definition of symbols ahead of time
  • Output labels where jumps occur

Refactor label scoping

Label scoping should be simplified to simply add the global label's name to the locals.

e..g

glabel:

.llabe1: ; this becomes glabel.llabel

Scope and labels

When resolving expressions, keep a list of unresolved names and attempt to resolve at the following points:

at the end of a scope -> if this fails add to the global unresolved list
at the end of the program -> if this fails we have an unresolved symbol

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.