#include "includes.h"Go to the source code of this file.
Functions | |
| OS_BOOL | OsLibStringCompare (U8 *pString, U8 *pString2) |
| void | OsLibStringCopy (U8 *pDestination, U8 *pSource) |
| void | OsLibPrintString (U8 *pString) |
| void | OsLibU32Print (U32 Number) |
| void OsLibPrintString | ( | U8 * | pString | ) |
Definition at line 44 of file os_lib.c.
00044 { 00045 U8 i; 00046 00047 i=0; 00048 while(*pString!=0){ 00049 if(*pString==0x0a) CgaChangeLine(); 00050 else if(*pString==0x0d); 00051 else CgaCharPut(*pString); 00052 pString++; 00053 i++; 00054 if(i>=16) break; 00055 } 00056 CgaCursorSet(); 00057 }
Definition at line 12 of file os_lib.c.
00012 { 00013 U8 i; 00014 00015 i=0; 00016 while((*pString!=0)&&(*pString2!=0)){ 00017 if(*pString!=*pString2) return OS_FALSE; 00018 pString++; 00019 pString2++; 00020 i++; 00021 if(i>=OS_NAME_STRING_MAX) return OS_TRUE; 00022 } 00023 if((*pString==0)&&(*pString2==0)) return OS_TRUE; 00024 else return OS_FALSE; 00025 }
Definition at line 27 of file os_lib.c.
00027 { 00028 U8 i; 00029 00030 i=0; 00031 while(*pSource!=0){ 00032 *pDestination=*pSource; 00033 pDestination++; 00034 pSource++; 00035 i++; 00036 if(i>=(OS_NAME_STRING_MAX-1)){ 00037 *pDestination=0; 00038 return; 00039 } 00040 } 00041 *pDestination=0; 00042 }
| void OsLibU32Print | ( | U32 | Number | ) |
Definition at line 59 of file os_lib.c.
00059 { 00060 U32 i; 00061 00062 i=(Number&0xf0000000)>>28; 00063 if(i<10) i=i+0x30; 00064 else i=i+0x41-10; 00065 CgaCharPut(i); 00066 i=(Number&0x0f000000)>>24; 00067 if(i<10) i=i+0x30; 00068 else i=i+0x41-10; 00069 CgaCharPut(i); 00070 i=(Number&0x00f00000)>>20; 00071 if(i<10) i=i+0x30; 00072 else i=i+0x41-10; 00073 CgaCharPut(i); 00074 i=(Number&0x000f0000)>>16; 00075 if(i<10) i=i+0x30; 00076 else i=i+0x41-10; 00077 CgaCharPut(i); 00078 i=(Number&0x0000f000)>>12; 00079 if(i<10) i=i+0x30; 00080 else i=i+0x41-10; 00081 CgaCharPut(i); 00082 i=(Number&0x00000f00)>>8; 00083 if(i<10) i=i+0x30; 00084 else i=i+0x41-10; 00085 CgaCharPut(i); 00086 i=(Number&0x000000f0)>>4; 00087 if(i<10) i=i+0x30; 00088 else i=i+0x41-10; 00089 CgaCharPut(i); 00090 i=Number&0x0000000f; 00091 if(i<10) i=i+0x30; 00092 else i=i+0x41-10; 00093 CgaCharPut(i); 00094 }
1.5.9