Menu

sslib

Felipe Cabrera

The Simple Standard Library (sslib) is the standard library of NuOS. It has implemented in NuOS v0.02.
You may use this for your own project because it's under GNU GPL v3.
The current stable version is v0.02 and it's developing a new version with new features.


Functions

For use the functions must be loading by #include "lib/stdlib.h" in the header of te app. A list of functions and arguments:

Function Arguments Description
cli Disable interrupts
cll line,colour Clear a line
cls colour Clean the screen
disable_a20 Disable A20 Line
disable_kb Disable keyboard port
enable_a20 Enable A20 Line
enable_kb Enable keybord port
get_code Get scancode of the keyboard
hlt Halt the machine
inb port Read a byte of a port
outb value,port Write a byte in a port
printf message Print char *
reboot Reboot the machine
scancode c,buffer,state,line,column Print scancode in the screen
scanf buffer,line,column Read the keyboard port
dprintf message,line,column,colour Print char *
sti Enable interrupts
strcat destination,source Concatenate strings
strcmp string1,string2 Compare two strings

MongoDB Logo MongoDB