Author Topic: Hey guys, assembly problems here  (Read 145 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: 6716
  • Assembler is fun ;-)
    • MasmBasic
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: 15
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: 6716
  • Assembler is fun ;-)
    • MasmBasic
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--

  • Administrator
  • Member
  • ******
  • Posts: 4334
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
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    :biggrin:  :biggrin:

guga

  • Member
  • ****
  • Posts: 824
  • Assembly is a state of art.
    • RosAsm
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 ? :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

  • Member
  • ****
  • Posts: 775
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: 63
  • Why to be low?...To growth up of course.
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.  8)
; An assembly researcher.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4334
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
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    :biggrin:  :biggrin:

felipe

  • Member
  • **
  • Posts: 63
  • Why to be low?...To growth up of course.
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.  :t
; An assembly researcher.

jj2007

  • Member
  • *****
  • Posts: 6716
  • Assembler is fun ;-)
    • MasmBasic
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 :icon_mrgreen:

nidud

  • Member
  • *****
  • Posts: 1127
    • https://github.com/nidud/asmc
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 :icon_mrgreen:

felipe

  • Member
  • **
  • Posts: 63
  • Why to be low?...To growth up of course.
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 :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.
; An assembly researcher.

jj2007

  • Member
  • *****
  • Posts: 6716
  • Assembler is fun ;-)
    • MasmBasic
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 :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

  • Member
  • **
  • Posts: 181
Re: Hey guys, assembly problems here
« Reply #14 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