+; sped - the stupidly pointless editor
+; written by pinosaur
+; fileutils.asm: file i/o
%include "macros.S"
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
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