Giter VIP home page Giter VIP logo

nblib's Introduction

NBLib

NASM Basic Lib is a list of basic functions to use in your simple assembler programs.

Maybe I'll add a few more.

Compile && Play

nasm -f elf32 -I includes examples/hello_world.asm
ld -m elf_i386 -o hello_world examples/hello_world.o lib/stdio.o lib/stdlib.o
./hello_world

Available Functions

stdio

  • sprint (simple print)
  • sread (simple read)

stdlib

  • atoi
  • exit

string

  • strlen
  • strcpy
  • strcat
  • strrev

ctype

  • toupper
  • tolower

Motivation

I'm reading Irvine's book and I don't feel like creating a VM just to use MASM, therefore I prefer to learn more by creating some functions on my own but with NASM. Not all of them can be created, but the basic ones will be enough to learn.

nblib's People

Contributors

grepmam 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.