Skip to content

Function library written in Assembly language.

Notifications You must be signed in to change notification settings

pruiz-ca/libasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧱 libasm

Basic functions written in assembly language.

Functions

  • strlen: computes the length of a string.
  • strcpy: copies a string src to dst (including the null terminating character).
  • strcmp: compares two strings.
  • write: writes data from a buffer to the object referenced by the file descriptor.
  • read: reads data from the object referenced by the file descriptor into a buffer .
  • strdup: allocates memory for a copy of a string, copies it and returns a pointer to it.
  • list_size: counts the number of elements in a linked list.
  • list_push_front: adds an element to the beggining of a linked list.

How to use

  1. Run make in the root directory
  2. Use the libasm.a file as a library