News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Hey guys, assembly problems here

Started by st3or, April 22, 2017, 02:29:46 AM

Previous topic - Next topic

st3or

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).

jj2007

No problem, just post your complete code, and we'll see where it chokes.

newrobert

hi, jj2007, he said some TASM problem, this is masm32 forum, is it ok for this?

jj2007

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.

hutch--

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.

guga

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:

Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

anunitu

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.

felipe

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)

hutch--

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.

felipe

I understand Hutch, i was saying that because i was remembering the author Mark Ludwig, who used Tasm, and i liked his book.  :t

jj2007

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:

nidud

#11
deleted

felipe

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.

jj2007

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.

LordAdef

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