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
Posted on 2002-06-11 10:42:55 by gorshing
Yes.

Mirno
Posted on 2002-06-11 10:49:52 by Mirno
you would do this
LOCAL answer[128]:BYTE
Posted on 2002-06-11 10:54:40 by Kudos
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
Posted on 2002-06-11 10:54:51 by gorshing