final clean up
[sped.git] / fileutils.asm
index 54c9895..32dcef6 100644 (file)
@@ -1,3 +1,6 @@
+; sped - the stupidly pointless editor
+; written by pinosaur
+; fileutils.asm: file i/o
 
 %include "macros.S"
 
@@ -70,10 +73,6 @@ readFile:
     cmp DWORD [ebp-IS_EOF], 1
     je _readFile_exit
 
-    
-    ; push esi
-    ; call printf
-
     ; make string buffer bigger
     mov eax, DWORD [ebp-LINES_READ]
     add eax, 1
@@ -160,13 +159,6 @@ readLine:
     add ecx, [ebp-CHAR_COUNT]
     mov edx, 1
     int 0x80
-
-    ; mov eax, 4
-    ; mov ebx, 1
-    ; mov ecx, [ebp-STR_PTR]
-    ; add ecx, [ebp-CHAR_COUNT]
-    ; mov edx, 1
-    ; int 0x80
     
     ; check for eof
     cmp eax, 0 ; eax has zero on eof