pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deleting line
[sped.git]
/
fileutils.asm
diff --git
a/fileutils.asm
b/fileutils.asm
index
1d78439
..
6c30ca6
100644
(file)
--- a/
fileutils.asm
+++ b/
fileutils.asm
@@
-1,5
+1,5
@@
-%include "
util
s.S"
+%include "
macro
s.S"
extern printf
extern malloc
extern printf
extern malloc
@@
-60,15
+60,15
@@
readFile:
_readFile_loop:
_readFile_loop:
- ; check if eof was reached
- cmp DWORD [ebp-IS_EOF], 1
- je _readFile_exit
-
push DWORD [ebp-FILE_HANDLE]
call readLine
mov esi, eax
mov [ebp-IS_EOF], ebx
push DWORD [ebp-FILE_HANDLE]
call readLine
mov esi, eax
mov [ebp-IS_EOF], ebx
+
+ ; check if eof was reached
+ cmp DWORD [ebp-IS_EOF], 1
+ je _readFile_exit
; push esi
; call printf
; push esi
; call printf