Index: trunk/Configurator/Inc/emulate.inc
===================================================================
--- trunk/Configurator/Inc/emulate.inc	(revision 145)
+++ trunk/Configurator/Inc/emulate.inc	(revision 162)
@@ -329,5 +329,5 @@
 		db	01100101b
 	%else
-		%error "Invalid segment overried passed to eSEG!"
+		%error "Invalid segment override passed to eSEG!"
 	%endif
 %endmacro
Index: trunk/Configurator/Src/Libraries/file.asm
===================================================================
--- trunk/Configurator/Src/Libraries/file.asm	(revision 145)
+++ trunk/Configurator/Src/Libraries/file.asm	(revision 162)
@@ -1,8 +1,4 @@
-; File name		:	file.asm
 ; Project name	:	File library
-; Created date	:	19.11.2009
-; Last update	:	24.11.2009
-; Author		:	Tomi Tilli
-; Description	:	ASM library for DOS file handling.	
+; Description	:	ASM library for DOS file handling.
 
 ;--------------- Equates -----------------------------
@@ -69,5 +65,5 @@
 ; Returns pointer to error string.
 ; Pointer is always valid, even if error code is not.
-; 
+;
 ; File_GetErrStr
 ;	Parameters:
@@ -111,5 +107,5 @@
 ; Opens file for reading and writing.
 ; File must be closed with File_Close when no longer needed.
-; 
+;
 ; File_Open
 ;	Parameters:
@@ -137,5 +133,5 @@
 ;--------------------------------------------------------------------
 ; Closes file.
-; 
+;
 ; File_Close
 ;	Parameters:
@@ -159,5 +155,5 @@
 ; File position is updated so next read will start where
 ; previous read stopped.
-; 
+;
 ; File_Read
 ;	Parameters:
@@ -191,5 +187,5 @@
 ; File position is updated so next write will start where
 ; previous write stopped.
-; 
+;
 ; File_Write
 ;	Parameters:
@@ -221,5 +217,5 @@
 ;--------------------------------------------------------------------
 ; Sets current file position to wanted offset.
-; 
+;
 ; File_SetFilePos
 ;	Parameters:
@@ -244,5 +240,5 @@
 ;--------------------------------------------------------------------
 ; Changes current default drive.
-; 
+;
 ; File_SetDrive
 ;	Parameters:
@@ -263,5 +259,5 @@
 ; Returns current default drive and number of
 ; potentially drive letters available.
-; 
+;
 ; File_GetDrive
 ;	Parameters:
@@ -286,7 +282,7 @@
 
 ;--------------------------------------------------------------------
-; Checks are the potentially valid drive letters returned by 
+; Checks are the potentially valid drive letters returned by
 ; File_SetDrive and File_GetDrive actually valid or not.
-; 
+;
 ; File_IsDrive
 ;	Parameters:
@@ -315,5 +311,5 @@
 ;--------------------------------------------------------------------
 ; Returns number of valid drive letters.
-; 
+;
 ; File_GetValidDrvCnt
 ;	Parameters:
@@ -337,5 +333,5 @@
 	inc		dx					; Increment drive number
 	loop	.LetterLoop			; Loop while drive letters left
-	eMOVZX	cx, dh				; Valid drv count to CX
+	mov		cl, dh				; Valid drv count to CX
 	ret
 
@@ -344,5 +340,5 @@
 ; Return device number for Nth valid drive.
 ; This function does not check if index in CX is valid.
-; 
+;
 ; File_GetNthValidDrv
 ;	Parameters:
@@ -353,5 +349,5 @@
 ;	Corrupts registers:
 ;		CX
-;--------------------------------------------------------------------	
+;--------------------------------------------------------------------
 ALIGN JUMP_ALIGN
 File_GetNthValidDrv:
@@ -371,5 +367,5 @@
 ;--------------------------------------------------------------------
 ; Changes current directory.
-; 
+;
 ; File_ChangeDir
 ;	Parameters:
@@ -391,5 +387,5 @@
 ;--------------------------------------------------------------------
 ; Finds files from wanted path using search wildcard characters.
-; 
+;
 ; File_FindAndCount
 ;	Parameters:
@@ -419,5 +415,5 @@
 ; Finds files from wanted path using search wildcard characters.
 ; Ptr to DTA is returned for wanted file.
-; 
+;
 ; File_GetDTA
 ;	Parameters:
@@ -457,5 +453,5 @@
 ;--------------------------------------------------------------------
 ; Find first file or directory.
-; 
+;
 ; File_FindFirst
 ;	Parameters:
@@ -482,5 +478,5 @@
 ; Find next file or directory. File_FindFirst must always be called
 ; before calling File_FindNext.
-; 
+;
 ; File_FindNext
 ;	Parameters:
