String input

Reply

Join Date: Mar 2009
Posts: 123
Reputation: neutralfox is an unknown quantity at this point 
Solved Threads: 0
neutralfox neutralfox is offline Offline
Junior Poster

String input

 
0
  #1
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: DavidOsorno is an unknown quantity at this point 
Solved Threads: 1
DavidOsorno DavidOsorno is offline Offline
Newbie Poster

Re: String input

 
0
  #2
Apr 15th, 2009
Need to know what compiler and OS you are using.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 123
Reputation: neutralfox is an unknown quantity at this point 
Solved Threads: 0
neutralfox neutralfox is offline Offline
Junior Poster

Re: String input

 
0
  #3
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: DavidOsorno is an unknown quantity at this point 
Solved Threads: 1
DavidOsorno DavidOsorno is offline Offline
Newbie Poster

Re: String input

 
0
  #4
Apr 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 123
Reputation: neutralfox is an unknown quantity at this point 
Solved Threads: 0
neutralfox neutralfox is offline Offline
Junior Poster

Re: String input

 
0
  #5
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: DavidOsorno is an unknown quantity at this point 
Solved Threads: 1
DavidOsorno DavidOsorno is offline Offline
Newbie Poster

Re: String input

 
0
  #6
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 123
Reputation: neutralfox is an unknown quantity at this point 
Solved Threads: 0
neutralfox neutralfox is offline Offline
Junior Poster

Re: String input

 
0
  #7
Apr 15th, 2009
Thanks ... will the program still run in masm615 if I assembled it using masm32?
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: DavidOsorno is an unknown quantity at this point 
Solved Threads: 1
DavidOsorno DavidOsorno is offline Offline
Newbie Poster

Re: String input

 
0
  #8
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 123
Reputation: neutralfox is an unknown quantity at this point 
Solved Threads: 0
neutralfox neutralfox is offline Offline
Junior Poster

Re: String input

 
0
  #9
Apr 16th, 2009
Okie .... thanks for the help. I will try it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC