Main proc hInst:DWORD
LOCAL answer: WORD
invoke StdIn, addr answer, 128
invoke StdOut, addr answer
ret
Main endp
This code is incorrect....right?
The variable answer is only allocated to a single word, but we are going to read in 128 bytes, a word being only 2 bytes. So I will have a memory problem. Am I correct on this?
Thanks again,
gorshing
LOCAL answer: WORD
invoke StdIn, addr answer, 128
invoke StdOut, addr answer
ret
Main endp
This code is incorrect....right?
The variable answer is only allocated to a single word, but we are going to read in 128 bytes, a word being only 2 bytes. So I will have a memory problem. Am I correct on this?
Thanks again,
gorshing
Yes.
Mirno
Mirno
you would do this
LOCAL answer[128]:BYTE
LOCAL answer[128]:BYTE
Sorry, I've been looking where I got this code and found it here, ( sorry I thought that I found it on my computer )
Nan has made the corrections here -> http://www.asmcommunity.net/board/index.php?topic=5411&highlight=Zion
Nan has made the corrections here -> http://www.asmcommunity.net/board/index.php?topic=5411&highlight=Zion