pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots more commands
[sped.git]
/
fileutils.asm
diff --git
a/fileutils.asm
b/fileutils.asm
index
0f829f5
..
ad284b5
100644
(file)
--- a/
fileutils.asm
+++ b/
fileutils.asm
@@
-80,10
+80,14
@@
readFile:
mov DWORD [ebp-BUF_PTR], eax
; write string to buffer
mov DWORD [ebp-BUF_PTR], eax
; write string to buffer
- mov eax,
DWORD [ebp-BUF_PTR
]
+ mov eax,
[ebp-LINES_READ
]
mov ecx, 4
mul ecx
mov ecx, 4
mul ecx
- mov eax, esi
+ add eax, DWORD [ebp-BUF_PTR]
+ mov [eax], esi
+
+ ; push DWORD [eax]
+ ; call printf
add DWORD [ebp-LINES_READ], 1
add DWORD [ebp-LINES_READ], 1