Giter Club home page Giter Club logo

cbozan / my_assembler_compiler Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 27 KB

An assembler compiler with special instruction sets written in C language.

License: GNU General Public License v3.0

C 99.41% Makefile 0.59%
assembler assembly assembly-language assembly-language-programming c compiler compiler-collection compiler-design compilers programming-language programming-language-design programming-languages my-assembler create-programming-language custom-programming-language create-compiler-with-c compiler-construction compilers-design

my_assembler_compiler's Introduction

My Assembler Compiler

An assembler compiler with special instruction sets written in C language.

Tokenizer

Let's run the makefile first and then the main.exe.

mingw32-make & main

 

Let's write the path of the file to be tokenized in the path part. (if the file is in the same directory you can just type its name)

source

SS

image  

Parser

Compile and run.

gcc parser.c -o parser & parser

 

Let's write the path of the file to be compiled in the path part. (if the file is in the same directory, just type its name)

source2

SS

image

 

Assembler

Compile and run.

gcc assembler.c -o assembler & assembler

 

Let's write the path of the file to be compiled in the path part. (if the file is in the same directory, just type its name)

source3

 

source3 - Program to add numbers from 1 to 10 - The result is inside the AX register

HRK AX, 0
HRK BX, 1
HRK CX, 11
loop:
	TOP AX, BX
	TOP BX, 1
	HRK DX, BX
	CIK DX, CX
	SN loop

SS

image  

Task

Add input and output buffers. Nice toy for those who are interested :)

my_assembler_compiler's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.