Code Monkey home page Code Monkey logo

all-8085's Introduction

ALL-8085

A simple Assembler Linker Loader Simulator for subset of C language. Converts in 8085 assembly language. Supports global variables and multiple file definitions.

Dependencies

For GUI

Tkinter Library

For command line

None

File format?

In a txt file specify on separate line all the files you want to link.

How to run?

python3 gui.py

Pass the txt file which contains all the files in separate lines you want to assemble link and load.

How to simulate?

python3 sim.py

If you are coming from gui.py click on open passed file to simulate the compiled code, or to open another file click on open another file.

How to specify files for command line usage?

In main.py, add files in list x

Example?

Repo contains SampleCodes dir in which there are sampleCode1.txt, sampleCode2.txt, sampleCode3 and testcode.txt.

Instruction format

Initialization :

Local:

var a = 5

Global:

glob a = 5

From another file (External variable):

extern a

Arthimetic

add:

a = b + c

sub:

a = b - c

bit and

a = b & c

bit or

a = b | c

where a is a variable declared

b,c can be integers or variables

Loop:

loop count

//Instructions

//Instructions

//Instructions

//Instructions

endloop

where count is a variable (not integer!!)

Conditional:

if x>y

//Instructions

//Instructions

//Instructions

//Instructions

endif

if x=y

//Instructions

//Instructions

//Instructions

//Instructions

endloop

x and y should be variables!!!!

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.