X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=fileutils.asm;h=32dcef6fd579a9610fd45dc1a3f89cf9cabf2f60;hp=54c989534f86bebb62aac83c79b8ee3f2f93dbd2;hb=4b37a0556e203fe1aa32647b2dae1bc661c5851e;hpb=737708d2a5e6ec61079236484c0a4c8234206ea8 diff --git a/fileutils.asm b/fileutils.asm index 54c9895..32dcef6 100644 --- 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" @@ -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