The MASM Forum

General => The Campus => Topic started by: st3or on April 22, 2017, 02:29:46 AM

Title: Hey guys, assembly problems here
Post by: st3or on April 22, 2017, 02:29:46 AM
Hey guys I have some TASM assembly problems I don't seem to know how to solve.

If you could help me I would be forever gratefull.

1. Implement a sum of 3 integers x,y,z, that would be initialized this way:
    - x = sum of last digit of the ASCII code of the 3 first letters from the

students name
   ( ex: ION where I=73, O=79, N=78 -> x = 3+9+8=20)
    - y = sum of last digit of ASCII code of first 2 letters from the students

first name
    - z = x+y


2. Write an app that will utilize the addressing known types (immediate, direct,

indirect and indexed or register index) to realize the sum operation from the

first exercise.

3. Show the sum value.

4. Use TD for debuging and register inspection, memory dump, etc (for exercise

1,2 and 3).
Title: Re: Hey guys, assembly problems here
Post by: jj2007 on April 22, 2017, 02:46:04 AM
No problem, just post your complete code, and we'll see where it chokes.
Title: Re: Hey guys, assembly problems here
Post by: newrobert on April 22, 2017, 07:32:21 AM
hi, jj2007, he said some TASM problem, this is masm32 forum, is it ok for this?
Title: Re: Hey guys, assembly problems here
Post by: jj2007 on April 22, 2017, 07:43:35 AM
No problem, TASM and MASM have very similar syntax. The important next step is that he posts his full code, so that we can see how much work he has invested, and where his specific problem is.
Title: Re: Hey guys, assembly problems here
Post by: hutch-- on April 22, 2017, 11:59:53 AM
So far it looks like a request for someone to do his homework for him. We don't yet know if its 16 or 32 bit code and God knows why anyone would be teaching something as old as Borland TASM, MASM ate it alive back in the middle 90s. It survived mainly because the virus idiot fringe liked using it.

Lets see what his code looks like if in fact he has written any.
Title: Re: Hey guys, assembly problems here
Post by: guga on April 22, 2017, 12:44:39 PM
Wow. I thought Tasm was dead and burried since late 90's . I was curious about it and made a small research on google. It also have a Gui for it. https://sourceforge.net/projects/guitasm8086  . But..why someone would built a gui for it and...specially...why make it in .Net instead of Tasm itself ? :greensml: :greensml:

Title: Re: Hey guys, assembly problems here
Post by: anunitu on April 22, 2017, 06:29:41 PM
Quote from: hutch-- on April 22, 2017, 11:59:53 AM
So far it looks like a request for someone to do his homework for him. We don't yet know if its 16 or 32 bit code and God knows why anyone would be teaching something as old as Borland TASM, MASM ate it alive back in the middle 90s. It survived mainly because the virus idiot fringe liked using it.

Lets see what his code looks like if in fact he has written any.


Those examples do seem a bit "test question" in nature.
Title: Re: Hey guys, assembly problems here
Post by: felipe on April 22, 2017, 11:19:39 PM
Quote from: hutch-- on April 22, 2017, 11:59:53 AM
So far it looks like a request for someone to do his homework for him. We don't yet know if its 16 or 32 bit code and God knows why anyone would be teaching something as old as Borland TASM, MASM ate it alive back in the middle 90s. It survived mainly because the virus idiot fringe liked using it.

Lets see what his code looks like if in fact he has written any.

I agree with you, he should do his homework. I just want to say that not all the people who wrote viruses with tasm were idiots, some actually did it for study purposes.  8)
Title: Re: Hey guys, assembly problems here
Post by: hutch-- on April 23, 2017, 01:26:12 AM
felipe,

Its a bias I have from the early years when we used to get flooded with guys wanting to write viruses in TASM. I have in fact known serious programmers who developed 32 bit software in TASM.
Title: Re: Hey guys, assembly problems here
Post by: felipe on April 23, 2017, 01:35:38 AM
I understand Hutch, i was saying that because i was remembering the author Mark Ludwig, who used Tasm, and i liked his book.  :t
Title: Re: Hey guys, assembly problems here
Post by: jj2007 on April 23, 2017, 02:18:12 AM
Quote from: felipe on April 22, 2017, 11:19:39 PMI agree with you, he should do his homework. I just want to say that not all the people who wrote viruses with tasm were idiots

It's not about TASM - a valid dialect, btw close in syntax to Masm. The guy will never show up again, he understood my reply "post your code" as "go to hell" - and rightly so :icon_mrgreen:
Title: Re: Hey guys, assembly problems here
Post by: nidud on April 23, 2017, 02:29:37 AM
deleted
Title: Re: Hey guys, assembly problems here
Post by: felipe on April 23, 2017, 02:34:50 AM
Quote from: nidud on April 23, 2017, 02:29:37 AM
The Campus

A protected forum where programmers learning assembler can ask questions in a sensible and safe atmosphere without being harassed or insulted.

Quote from: jj2007 on April 23, 2017, 02:18:12 AMThe guy will never show up again, he understood my reply "post your code" as "go to hell" - and rightly so :icon_mrgreen:

That's true and this too:

The NO HOMEWORK Rule.
9. The forum is a technical help forum for assembler language programmers, it will not be used as a location for grovelling to get someone to do your homework. Members who are learning assembler programming at school or similar are welcome but they must do their own work. In this context they will receive assistance if they need it but any dumping of problems in the forum will be removed.
Title: Re: Hey guys, assembly problems here
Post by: jj2007 on April 23, 2017, 02:58:28 AM
Quote from: nidud on April 23, 2017, 02:29:37 AM
The Campus

A protected forum where programmers learning assembler can ask questions in a sensible and safe atmosphere without being harassed or insulted.

Absolutely :t

At least, for everybody who comes here to ask assembler-related questions, such as "why does my loopz not work". We do answer such questions all the time, in a sensible and safe atmosphere without harassing or insulting anybody.

But now, read the original "questions", and ask yourself why two days after a friendly "post your code" you still see no answer :bgrin:

When seeing homework questions, my standard answer is indeed "post your code". And in about half the cases, you see code arriving some hours later; which means he sat down and worked. And then, he definitely gets friendly support, from myself and many others, notably DednDave, Hutch, Vortex and MichaelW. This is a friendly place, but when somebody posts in The Campus hoping to find an idiot who does his homework, we smell the attitude miles ahead, and act accordingly.
Title: Re: Hey guys, assembly problems here
Post by: LordAdef on April 23, 2017, 05:57:25 AM
I am one of those who came looking for assistance. I've always been well treated and helped here. Surely I RTFM and tried to do my homework in order to earn such help.

ps: His exercise is easy enough for him to give it try and show something
Title: Re: Hey guys, assembly problems here
Post by: aw27 on April 23, 2017, 07:26:16 AM
TASM was a great assembler in DOS days. With it and the Ralph Brown's Interrupt List we could do great programs.