pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more commands + readme
[sped.git]
/
fileutils.asm
diff --git
a/fileutils.asm
b/fileutils.asm
index
0f829f5
..
8596ff3
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
@@
-197,3
+201,7
@@
readLine:
pop ebp
ret
pop ebp
ret
+; writes contents of string array into file
+; arg: filename, string array
+; writeFile:
+