Coder Social home page Coder Social logo

pyarm-assembler's Introduction

PyARM-Assembler

Assembler for ARM assembly language.

An assembler is just a simple program that is supposed to convert assembly code to machine code(binary).
A linker may be further implemented for execution. Given an ARM7 assembly code to our assembler, we want it to spit binary.
eg:

MOV R3, R9   # assembly
1110 0001 1010 0000 0011 0000 0000 1001  # binary

An assembler has two passes, coz it skips certain lines in first pass.
Read input line, parse the opcode, check for operands, addressing modes etc,
get all 8 bits and write them to a object text file.
This assembler, however, is an one pass assembler.

How to run ?

python assembler.py -f fileName.s 

For debugging, set the debug variable in source equal to 1.

Some material :

Future Work

  • Make a 8051 version of this, preferably using Chapel Language.

pyarm-assembler's People

Contributors

ankushbhardwxj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pyarm-assembler's Issues

Add condition feature

TODO: Currently default bits for condition is 0000, we should parse condition in a given line and use its specific binary bits in our binary string.

Complete remaining instructions

MOV, Shift and other complex instructions haven't been completed yet because complex assembly programs were not yet tested. Implement each of them from documentation.

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.