Code Monkey home page Code Monkey logo

assembler-python's Introduction

Willkommen zum Assembler-Python

Dieses Repo beschäftigt sich mit einer ausgedachten / vereinfachten Assmblersprache. Um eine einfacheren Bezug zu der Sprache zuentwickeln, habe ich mich (Jonas Napierski) hingesetzte und schnell in Python einen kleinen Interpreten zu schreiben. English Version

Befehle

  • CRT [cell] CRT erstellt eine Speicherzelle mit der Angegebene "Adresse"
  • HLT HLT bricht das Programm ab.
  • INC [cell] INC erhöht den Wert in einer Speicherzelle um 1.
  • DEC [cell] DEC verringert den Wert in einer Speicherzelle um 1.
  • PRT [cell] PRT gibt den Wert aus der sich in einer Speicherzelle befindet.
  • TST [cell] bei einer 0 in der Speicherzelle springt das Prgamm in die 2 Zeile nach dem TST & bei einer 1 geht das Programm in der gewohnten Form in der nächsten Zeile weiter.
  • JMP [line] JMP Spring zu der angegebene Zeile im Assembler Code (Beachtet das das Dokument nicht bei Zeile 1, sondern Programmier üblich bei Zeile 0 startet!)

Installation

Das Script ist getestet in Python3.8.10

  1. $ git clone https://github.com/zirkumflexlab/assembler-python
  2. $ cd Assembler-Python
  3. $ python -m pip install -r ./requirements.txt

How to?

Wie benutzt ich das Script, um meine Assembler-Code zu testen?

Einfach geben diesen Befehl ein: $ python Assembler-Python.py [path to file]

Bugs

Wenn sich das Programm in einer Endlosschleife befindet. versuch das Script abzubrechen unter Windows / Linux mit [STRG] + c

assembler-python's People

Contributors

jonasnapierski avatar

Watchers

 avatar

assembler-python's Issues

step output

Output what is the script doing and where it is , maybe somthing like this [code line] [command] values*

with rich it also can be formatted with colors.

logging and testing

add support for log levels, created exceptions. and maybe test flag to the comment for the expected output

missing docs

add docs to all function. With small ref to the wiki where the code is step by step explained

done

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.