1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Anyone knows assembly language?

Discussion in 'BBS Hangout' started by LegendZ3, Feb 15, 2005.

  1. LegendZ3

    LegendZ3 Member

    Joined:
    Nov 6, 2002
    Messages:
    4,196
    Likes Received:
    5
    This is my last resort, I can't find my professor and my TA is an a-hole. So if you know the solution, please help me.

    I was given following data statements:

    .data
    Data: .word 8,127,983,16000,65537
    Value: .byte 255,128,64,32,5

    And I'm suppose to write an MIPS assembly program which displays the sum of "Data" and sum of "Value".

    But I have no idea how to load those vaules into the registers.(I can't change those data statements.)

    Any help would be appreciated.
     
  2. fba34

    fba34 Member

    Joined:
    May 24, 2001
    Messages:
    2,361
    Likes Received:
    405
    i did a course last term called digital logic 2, where i learned DECE assembly language. is that the same?

    .EQU Datasum R1
    .EQU Valuesum R0
    .EQU i R2
    .EQU j R3
    .EQU Temp3 R4


    here: ADDL i, NULL, 0
    ADDL Datasum, NULL, 0
    here1: ADDL Datasum, Datasum, Data(i)
    ADDL i, i, 1
    SUBL NULL, i, 5
    JMPLTU here1
    JMP here

    pretty much the same with the other sum
     
  3. DanzelKun

    DanzelKun Member

    Joined:
    Nov 16, 2002
    Messages:
    1,218
    Likes Received:
    6
    Yeah I'm in an Assembly course right now (319K for you UT EE kids) but as of now we haven't done output to the screen, I dunno if the microcontroller that we're working with is capable of that.... and I have no idea what MIPS is.... so I'm no help... :)
     
  4. Kyakko

    Kyakko Member

    Joined:
    Aug 15, 2002
    Messages:
    2,161
    Likes Received:
    39
    Sorry I took Assembly using X86, but i probably wouldn't help you in either case. it's been over 5 years.
     
  5. aeroman10

    aeroman10 Member

    Joined:
    Nov 2, 2003
    Messages:
    2,695
    Likes Received:
    50
    Oh man, assembly language sucks..
    Luckily when we worked with the 8051 Micro-controller we used the micro-c language for the most part..

    I would suggest asking here:
    http://groups-beta.google.com/group/comp.arch.embedded

    Thats where I found alot of help regarding assembly and micro-p
     
  6. LegendZ3

    LegendZ3 Member

    Joined:
    Nov 6, 2002
    Messages:
    4,196
    Likes Received:
    5
    Well, I took care the first part, but having trouble with the .byte values, I can't located their address.
     
  7. Manny Ramirez

    Manny Ramirez The Music Man

    Joined:
    Jul 31, 2001
    Messages:
    28,871
    Likes Received:
    5,761
    Assembly language is why I DROPPED Computer Science as a minor, LOL. Good luck.
     
  8. Surfguy

    Surfguy Member

    Joined:
    Sep 23, 1999
    Messages:
    24,709
    Likes Received:
    12,974
    Yuck...that brings back some bad memories. I question why they still teach assembly language other than to torture students. I guess it is still used somewhere out there. I had to write my own assembly language in one of the more advanced courses back in the day. Damned if I can remember a thing about it, though.
     
  9. SoSoDef76

    SoSoDef76 Member

    Joined:
    Jul 8, 2002
    Messages:
    655
    Likes Received:
    20
    Wow, this does bring back some memories. I took Mac assembly back in 1995. The only thing I vaguely remember is something about how the Motorola chip is big endian, while the x86 is little endian. Or maybe it was the other way around. Either way, who cares? Man, that class sucked. Good luck.
     
  10. DarkHorse

    DarkHorse Member

    Joined:
    Oct 9, 1999
    Messages:
    6,756
    Likes Received:
    1,303
    Yeah... the crappy thing about assembly is that it's heavily dependent on the architecture. Unfortunately, I've never done anything with MIPS.

    :(
     

Share This Page