X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=fileutils.asm;h=6c30ca61658fa6f2e9ff68b2160ae4f31c3dd8d5;hp=1d78439ca5a072ae29cac9d6fedb9abd905d6c84;hb=6cf67300c03d92a9cc0c5888b33cdb21a852eb69;hpb=89732d399de9007aaf2894b0c637e8cfb9ed47ac diff --git a/fileutils.asm b/fileutils.asm index 1d78439..6c30ca6 100644 --- a/fileutils.asm +++ b/fileutils.asm @@ -1,5 +1,5 @@ -%include "utils.S" +%include "macros.S" extern printf extern malloc @@ -60,15 +60,15 @@ readFile: _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 + + ; check if eof was reached + cmp DWORD [ebp-IS_EOF], 1 + je _readFile_exit ; push esi ; call printf