### Author Topic: Hey guys, assembly problems here  (Read 1265 times)

#### st3or

• Regular Member
• Posts: 1
##### Hey guys, assembly problems here
« 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).

#### jj2007

• Member
• Posts: 8448
• Assembler is fun ;-)
##### Re: Hey guys, assembly problems here
« Reply #1 on: April 22, 2017, 02:46:04 AM »
No problem, just post your complete code, and we'll see where it chokes.

#### newrobert

• Regular Member
• Posts: 38
##### Re: Hey guys, assembly problems here
« Reply #2 on: April 22, 2017, 07:32:21 AM »
hi, jj2007, he said some TASM problem, this is masm32 forum, is it ok for this?

#### jj2007

• Member
• Posts: 8448
• Assembler is fun ;-)
##### Re: Hey guys, assembly problems here
« Reply #3 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.

#### hutch--

• Member
• Posts: 5432
• Mnemonic Driven API Grinder
##### Re: Hey guys, assembly problems here
« Reply #4 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.
hutch at movsd dot com
http://www.masm32.com

#### guga

• Member
• Posts: 832
• Assembly is a state of art.
##### Re: Hey guys, assembly problems here
« Reply #5 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 ?

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

• Member
• Posts: 1012
##### Re: Hey guys, assembly problems here
« Reply #6 on: April 22, 2017, 06:29:41 PM »
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

• Member
• Posts: 833
• Eagles are just great!
##### Re: Hey guys, assembly problems here
« Reply #7 on: April 22, 2017, 11:19:39 PM »
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.
Felipe.

#### hutch--

• Member
• Posts: 5432
• Mnemonic Driven API Grinder
##### Re: Hey guys, assembly problems here
« Reply #8 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.
hutch at movsd dot com
http://www.masm32.com

#### felipe

• Member
• Posts: 833
• Eagles are just great!
##### Re: Hey guys, assembly problems here
« Reply #9 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.
Felipe.

#### jj2007

• Member
• Posts: 8448
• Assembler is fun ;-)
##### Re: Hey guys, assembly problems here
« Reply #10 on: April 23, 2017, 02:18:12 AM »
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

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

#### nidud

• Member
• Posts: 1510
##### Re: Hey guys, assembly problems here
« Reply #11 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.

The guy will never show up again, he understood my reply "post your code" as "go to hell" - and rightly so

#### felipe

• Member
• Posts: 833
• Eagles are just great!
##### Re: Hey guys, assembly problems here
« Reply #12 on: April 23, 2017, 02:34:50 AM »
The Campus

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

The guy will never show up again, he understood my reply "post your code" as "go to hell" - and rightly so

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

#### jj2007

• Member
• Posts: 8448
• Assembler is fun ;-)
##### Re: Hey guys, assembly problems here
« Reply #13 on: April 23, 2017, 02:58:28 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

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

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.