Simple Operating System
stdlib.h File Reference

Standard libary. More...

#include "types.h"
Include dependency graph for stdlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Word getMemorySize (void)
 Get RAM size in first 1MB. More...
 
void udelay (unsigned long usecs)
 Delay usecs microseconds. More...
 
void exit (int val)
 Exit from program. More...
 

Detailed Description

Standard libary.

Todo:
change name to not be mismatched with stdlib.h

Definition in file stdlib.h.

Function Documentation

◆ exit()

void exit ( int  val)

Exit from program.

Parameters
valreturn code
Todo:
to it as OS interruption

Definition at line 42 of file stdlib.h.

◆ getMemorySize()

Word getMemorySize ( void  )

Get RAM size in first 1MB.

Todo:
get RAM size above first 1MB with int 0x15 AH=0x88, see info.com
Returns
size in kB

Definition at line 16 of file stdlib.h.

◆ udelay()

void udelay ( unsigned long  usecs)

Delay usecs microseconds.

Parameters
usecs

Definition at line 29 of file stdlib.h.