Giter Club home page Giter Club logo

as8051's Introduction

AS8051

Assembler (and pretty printer) for 8051.

This program is a simple 8051 assembler.

AS8051 provides:

  • a program called as8051 which transform a 8051 assembly file into a hex format file or a binary file;

  • a program called pp8051 which rewrite a 8051 assembly file to remove labels and comments.

Installation: make && make install

  • You should run make install as root in order to install the programs in /usr/local.
  • You may specify another installation program by assigning the environment variable PREFIX:

PREFIX="/my/own/path" make install

Usage: as8051 [-b] input.asm

The assembled output comes out from stdout.

-b outputs a binary file instead of the hex format.

as8051's People

Contributors

lukbettale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

as8051's Issues

missing -lfl library

Thank you very much for your contribution. I found that the fl library was missing when compiling your code. What library is this? Can you provide it?

make
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I.  -c -o parser/parser8051.o parser/parser8051.c
yacc -d parser/yacc.8051.y 
mv -f y.tab.c parser/yacc.8051.c
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I.  -c -o parser/yacc.8051.o parser/yacc.8051.c
yacc -d parser/yacc.scan_8051.y 
mv -f y.tab.c parser/yacc.scan_8051.c
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I.  -c -o parser/yacc.scan_8051.o parser/yacc.scan_8051.c
lex  -t parser/lex.8051.l > parser/lex.8051.c
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I.  -c -o parser/lex.8051.o parser/lex.8051.c
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I.  -c -o parser/lex.scan_8051.o parser/lex.scan_8051.c
gcc -Wall -Wextra -Wmissing-declarations -fPIC -std=c99 -pedantic -O3 -D_POSIX_SOURCE -I. -s -L.  as8051.c parser/parser8051.o parser/yacc.8051.o parser/yacc.scan_8051.o parser/lex.8051.o parser/lex.scan_8051.o  -lfl -o as8051
/usr/bin/ld: cannot find -lfl
collect2: error: ld returned 1 exit status
make: *** [<builtin>: as8051] Error 1
rm parser/yacc.scan_8051.c parser/yacc.8051.c

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.