The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Vix on March 31, 2005, 07:27:43 PM

Title: Help with MASM
Post by: Vix on March 31, 2005, 07:27:43 PM
I am a new user at MASM and I have few questions about it.
Can someone tell me how to input string and than print it.
I 've read something about MASM but I can't still solve this string trouble.
Can someone write me an example how to input 2 strings and number and print them like this

String1
String2
Number

Title: Re: Help with MASM
Post by: mnemonic on March 31, 2005, 07:51:24 PM
Hi,

you will find what you need to know here (http://www.masmforum.com/simple/index.php?topic=1094.0).
Title: Re: Help with MASM
Post by: Vix on March 31, 2005, 08:44:28 PM
Thanks but this is not what I need I tnihk I need to do it in some older version of MASM the one which starts with
.MODELL
.DATA
.STACK
.CODE

Start:
.......

END Start

Can you help me with this version ?
:U
Title: Re: Help with MASM
Post by: mnemonic on March 31, 2005, 08:55:07 PM
Quote from: Vix on March 31, 2005, 08:44:28 PM
Thanks but this is not what I need I tnihk I need to do it in some older version of MASM the one which starts with [...]
Do you think or do you know? :wink
Is it for DOS (16bit) or for Win (32bit)?
Give more specifications get more info.

There was some guy around last time asking for a ready to build program that takes 2 numbers as input and performs some mathematical operation on it. I hope you are not the same guy or even belong to the same class. Homework is for exercise which should be solved on your own for the learning effect.
Title: Re: Help with MASM
Post by: Vix on March 31, 2005, 09:22:32 PM
I'm not that same guy I 've read something about MASM.
Version I have is 16 bit (DOS) this is pretty easy stuff but this string thing really bothers me I know how to print it but inputting string is my problem.
Thank you I hope I'm not bothering you because these are basics things.
:)
Title: Re: Help with MASM
Post by: mnemonic on March 31, 2005, 10:00:48 PM
Quote from: Vix on March 31, 2005, 09:22:32 PM
I'm not that same guy I 've read something about MASM.
That means you never did a own piece of code?

Quote from: Vix on March 31, 2005, 09:22:32 PMVersion I have is 16 bit (DOS) this is pretty easy stuff but this string thing really bothers me I know how to print it but inputting string is my problem.
You are in the wrong subforum here, btw. We have a dedicated subforum for 16bit stuff. It is likely that the thread will be moved soon.

I just did a search on google (http://www.google.de/search?hl=de&q=assembler+dos+keyboard+input&meta=) that brought me to this page (http://www.emu8086.com/vb/index_asm.html) containing that article (http://www.emu8086.com/vb/asm_samples/int21.txt).
It is not especially written for MASM but you should get the idea.
Give it a try.
Title: Re: Help with MASM
Post by: Vix on March 31, 2005, 10:49:46 PM
Thanks I've solved this string problem and it is working
:U