Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

I love assembly

Options
  • 31-08-2004 11:17am
    #1
    Registered Users Posts: 17,574 ✭✭✭✭


    Hey all

    I'm just going to repeat 2nd year of Computer Engineering in UL, and one of my problems is assembly, which takes up one module for the first semester, and two for the second. The first semester is an introduction with writing assembly programs for x86 machines, and one module for the second is programming a 8051 microcontroller, while the other is for manipulating the OS, such as writing TSRs

    Is there any place on the net that has tutorials that cover something along the lines of this, so I can get a head start on it for this year? I'm perfectly ok programming with C and C++, but assembly kicks me in the nuts every time.


Comments

  • Closed Accounts Posts: 2,313 ✭✭✭Paladin


    Here's a quick tutorial:
    http://www.campusprogram.com/reference/en/wikipedia/x/x8/x86_assembly_language.html#x86%20PC%20assembly%20tutorial

    Tbh I think most of the assembly you will do is more centred around logically thinking out the problem than any difficulty with instructions. I guarantee that you wont need to use very many beyond basic jump,move, increment commands etc.

    My advice when approaching assembly is dont touch the PC until you have thought the problem through logically. Solve the problem before you go muddling at it.

    Most students problems stem from this. Not actually knowing the solution before attacking the programming. Talk to people and ask lecturers if totally stuck, but nothing beats hammering away at it and solving and coding it on your own.


  • Registered Users Posts: 17,574 ✭✭✭✭Mr. CooL ICE


    Yeah, when given a problem, i didnt know how to even start the thing, and just grew a general hatred for the whole language. And when i asked the smart asses, i was answered with "but assembly is so easy, it's just step by step" and i can understand what theyre getting at, but it's no fuppin good to me!


  • Closed Accounts Posts: 1,541 ✭✭✭finnpark


    For 8051 stuff check www.8052.com. There is a forum there as well so if you have any problems you can be sure to get the answer. There are also brilliant tutorials, notes etc. This is the site for 8051 programming. 8052 is basically the same as 8051.


  • Registered Users Posts: 1,636 ✭✭✭henbane


    DCU stuff...
    http://www.compapp.dcu.ie/~ray/CA225Course.html Assembly based course in DCU. Lots of decent examples in the notes. If you get your head around the basics, adapting the examples is easy enough. When I was doing it, he put it up a piece at a time so save the entire thing before the end of September. Helppc linked from there is a useful reference.

    Some more links here...
    http://www.computing.dcu.ie/~ray/comparchlinks.html
    http://burks.brighton.ac.uk/burks/language/asm/index.htm

    Paladin's advice is as good as it gets. Pen & paper out before you even try to write on the PC. Decide on the structure, maybe break it down into pseudo-code and then try to write assembler for each block of pseudo-code.

    It's very easy once you get your head around the correct way of doing it. It should be a help in structuring higher level stuff more efficiently too.


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Here was me hoping we could have a thread to ourselves elating the joys of assembler programming.

    Sigh.

    If only I could get a project, writing 5000 lines of assembly or so...

    Happy days, happy days.


  • Advertisement
  • Registered Users Posts: 4,287 ✭✭✭NotMe


    henbane wrote:
    DCU stuff...
    http://www.compapp.dcu.ie/~ray/CA225Course.html Assembly based course in DCU. Lots of decent examples in the notes. If you get your head around the basics, adapting the examples is easy enough. When I was doing it, he put it up a piece at a time so save the entire thing before the end of September. Helppc linked from there is a useful reference.

    Some more links here...
    http://www.computing.dcu.ie/~ray/comparchlinks.html
    http://burks.brighton.ac.uk/burks/language/asm/index.htm

    Paladin's advice is as good as it gets. Pen & paper out before you even try to write on the PC. Decide on the structure, maybe break it down into pseudo-code and then try to write assembler for each block of pseudo-code.

    It's very easy once you get your head around the correct way of doing it. It should be a help in structuring higher level stuff more efficiently too.

    If Ray knew you were stealing his notes.... :eek:


Advertisement