Import backup from 2003-12-23

This commit is contained in:
josh committed 2017-07-25 22:23:45 -04:00
1 parent 9070a76b18
commit 71aaa7a598
13 files changed
+110 -437

No files matched your search

+4 -4
View File
@@ -107,7 +107,7 @@ _putc:
jz putc_tab
shl ebx, 1
add ebx, 0xb8000
add ebx, 0xc00b8000
mov ah, 0x07
mov [ebx], ax
mov eax, ecx
@@ -274,8 +274,8 @@ printf_done:
;
_console_scroll:
pusha
mov esi, 0xb8000+160
mov edi, 0xb8000
mov esi, 0xc00b8000+160
mov edi, 0xc00b8000
mov ecx, 960 ;(2000-80)/2
console_scroll_loop:
lodsd
@@ -294,7 +294,7 @@ console_scroll_loop2:
;
_console_cls:
pusha
mov edi, 0xb8000
mov edi, 0xc00b8000
mov ax, 0x0720
mov ecx, 2000
console_cls_loop:
+1 -1
View File
@@ -11,7 +11,7 @@ _memcpy:
push ecx
mov esi, [ebp+8]
mov edi, [ebp+12]
mov ecx, [ebp+14]
mov ecx, [ebp+16]
rep movsb
-13
View File
@@ -1,13 +0,0 @@
#include "string.h"
int strlen(char *str)
{
int retn = 0;
while (*str++ != 0)
retn++;
return retn;
}
-8
View File
@@ -1,8 +0,0 @@
#ifndef __HSTRING_H__
#define __HSTRING_H__ __HSTRING_H__
int strlen(char *str);
#endif