Assembly language Questions?

Discussion in 'Assembly Language Programming (ALP) Forum' started by deviljin, Jun 19, 2009.

  1. deviljin

    deviljin New Member

    Joined:
    Jun 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    we just started assembly language programming at school and i have no idea about the language as of now. :D. We are not using any assembler yet.

    We are basically starting at the basics.

    our professor gaves an assignment even we have not started coding yet. tried searching the net but unfortunately i dont understand any of it yet.:disappoin:beadyeyes

    Thankfully i found this website and as i was going over the forums. i can see that you guys really help us each other a lot. so i decided to join and hopefully you can help me learn more about assembly language. :D


    >>> here's the assignment :
    I need to print :
    5, 55, 5 5, 5 55, and
    5
    5

    as of know i located the answer for the first question. but i'm confused with the rest. if any of you guys could assist me on this. i'll be in your debt. thanks..
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Perhaps it's just an assessment of where you're all at. Was previous knowledge a pre-requisite for the course? If not then snagging a working example off someone on the net won't necessarily help you - it'll give the wrong impression that you already know how to code.

    Maybe you should mention to your professor that you haven't got a clue, that's why you're on the course, and how does he expect you to complete an assignment when he hasn't given you any skills yet.
     
  3. deviljin

    deviljin New Member

    Joined:
    Jun 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    yup your right.... actually what i'm doing is studying in advance. i basically looking for the codes to do this then i'll study the codes.. unfortunately i read the book but the book is very confusing.
     
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    hmm, so why didn't you say that instead of "our professor gaves an assignment"? Something smells fishy...

    Sound like you need another book, or perhaps if you've got time to study ahead maybe you should start programming in some other language that's a lot simpler, such as Basic (don't knock it, I started with Basic). Once you've got your head round programming you can then drop into Assembler without too much difficulty.
     
  5. deviljin

    deviljin New Member

    Joined:
    Jun 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    hehehe.. my bad....:p hehehe.
    for assembly i dont know anything about it yet. i mean. i stopped schooling for almost 5 years. so when i encountered assembly language it interest me. ;). so that is why i'm researching. studying in advance. :wacky:. but even though i may need help from people who knows how to. hehehe
     
  6. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Assembly language is highly dependent on the hardware and so there's no single way to print whatever combination of 5's you want, and in some cases there may be no way to print a 5 at all, for example if you've got a PIC connected to a single LED then you can only switch that LED on or off.

    So what hardware are you using?
     
  7. deviljin

    deviljin New Member

    Joined:
    Jun 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    actually we are not on hardware yet. basically we are just starting. I mean we are still using DOS prompt to put the codes in.
     
  8. mayjune

    mayjune New Member

    Joined:
    Jun 14, 2009
    Messages:
    814
    Likes Received:
    33
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pune,Delhi
    i think if you guys are starting then you might be starting with 8086, we were taught alp's with that using TASM as the software for it...
    check your syllabus (ask your teacher or your find out in library),
    they'll tell you two three reference as well as text books for you to start with... it'll have basic programs which you can start with..
     
  9. deviljin

    deviljin New Member

    Joined:
    Jun 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    ok. thanks. i'll ask him.
     
  10. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    lol. And the DOS prompt is running on what hardware? Or is it just somehow running in empty space?

    A PC is still hardware. So the instruction set is most likely x86, and for printing characters to the screen you need a software interrupt - don't know which as I don't know much about programming PCs at the assembly level. Google "pc assembly programming" - this returned about 311,000 results when I just tried it and there should be something in there to get you started. These all look relevant:

    http://en.wikipedia.org/wiki/Assembler_language
    http://www.freebyte.com/programming/assembler/
    http://www.geocities.com/siliconvalley/park/3230/x86asm/asmles01.html
    - this has TASM examples you can work through and Chapter 8 deals with screen output and INT 21 (the software interrupt for displaying to the screen).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice