pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
final clean up
[sped.git]
/
fileutils.asm
diff --git
a/fileutils.asm
b/fileutils.asm
index
54c9895
..
32dcef6
100644
(file)
--- a/
fileutils.asm
+++ b/
fileutils.asm
@@
-1,3
+1,6
@@
+; sped - the stupidly pointless editor
+; written by pinosaur
+; fileutils.asm: file i/o
%include "macros.S"
%include "macros.S"
@@
-70,10
+73,6
@@
readFile:
cmp DWORD [ebp-IS_EOF], 1
je _readFile_exit
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
; 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
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
; check for eof
cmp eax, 0 ; eax has zero on eof