943,599 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 2118
  • Assembly RSS
Apr 15th, 2009
0

String input

Expand Post »
Hello friends,
I am new to assembly language and I want the user to input a string ... then save the string in a stack.

Is there a function to get the string from the user, like getStr .

Thanks in advance.
Similar Threads
Reputation Points: 6
Solved Threads: 0
Junior Poster
neutralfox is offline Offline
124 posts
since Mar 2009
Apr 15th, 2009
0

Re: String input

Need to know what compiler and OS you are using.
Reputation Points: 21
Solved Threads: 1
Newbie Poster
DavidOsorno is offline Offline
14 posts
since Apr 2009
Apr 15th, 2009
0

Re: String input

I am using masm615 and Windows XP. But I didn't know that the code depends on the OS and the compiler.
Last edited by neutralfox; Apr 15th, 2009 at 1:45 pm.
Reputation Points: 6
Solved Threads: 0
Junior Poster
neutralfox is offline Offline
124 posts
since Mar 2009
Apr 15th, 2009
0

Re: String input

Under Windows, you can see a lot of samples, but using MASM32:

http://www.microsoft.com/downloads/d...displaylang=en

After installing, look into folders:

MASM32\tutorial\console
MASM32\examples

Let me know if that helps
Reputation Points: 21
Solved Threads: 1
Newbie Poster
DavidOsorno is offline Offline
14 posts
since Apr 2009
Apr 15th, 2009
0

Re: String input

Thanks for the answer dude. But I am having problem to install masm32. Is it different from masm615?
Last edited by neutralfox; Apr 15th, 2009 at 2:25 pm.
Reputation Points: 6
Solved Threads: 0
Junior Poster
neutralfox is offline Offline
124 posts
since Mar 2009
Apr 15th, 2009
0

Re: String input

You are welcome.

No quite different, MASM32 8 is a newer version (the most recent as far as I know)

If you are a begginer, I really encourage you to use that version, because it comes with a lot of very simple and self-explanatory samples.

It is fully compatible with the free versions, like Visual C++ express edition, so you can invoke your ASM functions from C++, or just type inline assembly from C++.

If you want to start from the very begging, you can follow the samples from the "hello world" sample.
Reputation Points: 21
Solved Threads: 1
Newbie Poster
DavidOsorno is offline Offline
14 posts
since Apr 2009
Apr 15th, 2009
0

Re: String input

Thanks ... will the program still run in masm615 if I assembled it using masm32?
Reputation Points: 6
Solved Threads: 0
Junior Poster
neutralfox is offline Offline
124 posts
since Mar 2009
Apr 15th, 2009
0

Re: String input

Yes i till run in masm615 as long as you do not use masm32 specific macros, or you copy the macro definition into masm615.

Browsing macro definitions help a great deal in learning.
Reputation Points: 21
Solved Threads: 1
Newbie Poster
DavidOsorno is offline Offline
14 posts
since Apr 2009
Apr 16th, 2009
0

Re: String input

Okie .... thanks for the help. I will try it.
Reputation Points: 6
Solved Threads: 0
Junior Poster
neutralfox is offline Offline
124 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: wrong output??
Next Thread in Assembly Forum Timeline: Which is the best assembler?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC