The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: hecbutoz on November 29, 2005, 05:54:30 AM

Title: I need aid
Post by: hecbutoz on November 29, 2005, 05:54:30 AM

in1       DWORD      ?
mov in1, input("Type to letter: ")


when I type from the keyboard a value, in which format is left stored in the variable in1 (for example in ASCII, HEX, binary or as?).

Thank you mates.
Title: Re: I need aid
Post by: MichaelW on November 29, 2005, 06:12:53 AM
The input macro allocates a 128-byte buffer, copies the input string to the buffer, and returns the address of the buffer. For your example, you could print the string that was input with:

  print in1

Title: Re: I need aid
Post by: Infro_X on November 29, 2005, 09:14:18 PM
as micheal said
input stores a pointer to a null terminated ascii string with a size of 128 bytes (max)