News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Do a Input Character

Started by nathanpc, October 03, 2009, 11:19:54 AM

Previous topic - Next topic

nathanpc

Hello,
I want to know two things, the first: How can i build a program that do something like this:
Enter Your Name: <name>
Hello <name>

<name> is what the user have typed.

Best Regards,
Nathan Paulino Campos

dedndave

try this...

FORTRANS

Hi,

   This has been addressed before, see for instance:

get useriput
http://www.masm32.com/board/index.php?topic=12054.0

Buffered Input.[solved]
http://www.masm32.com/board/index.php?topic=10689.0

   But a summary:  Use DOS String Output function 2 to
print your prompt.  Use function 0AH, Buffered Keyboard
Input to read the name.  Modify the input to put a dollar
sign at the end of the name.  Use String Output twice to
output your response and the name.

HTH,

Steve N.

nathanpc

I'm using dedndave example, but how i can store the inputed characters in a variable.

Thanks

dedndave

it is stored in a variable - the buffer
are you talking about converting numeric input into a binary value ?

nathanpc


BlackVortex


dedndave


nathanpc


BlackVortex

Then I think this thread got wrongly created or moved here   :P

dedndave

i didn't see any 32-bit code - lol
the example i gave you isn't 32-bits, either