How/where to learn Assembly?


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default How/where to learn Assembly?

    Just wondering of those who have gone through the pain of coding in assembly....how you learnt? (course, online, books, a buddy etc)

    What's the best avenue, cos I'm finding this all hard going.

    All I want to be able to get a PIC running in a very tight/fast loop towards generating sine waves, just like this guy has done...

    http://www.min.at/prinz/oe1rib/DDS/SineDDS.htm#Software

    He has even posted the related assembly code (which I can't really make much of!)...

    http://www.min.at/prinz/oe1rib/DDS/SineDDS.asm ( I think I'd prefer to use PWM and a filter just for space constraints)

    ...when I see that assembly code, I realise just how long this is gonna take me to get to grips with!

    I'm figuring my needs are modest, the program will be embarrassingly small, but at this point in the proceeedings, it feels like I've tasked myself with coding the navigation system for the hubble space telescope!!

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    Hi Hank. I will chime in and say I have no idea where to learn it formally. I learned from reading the datasheet. I started out on stamps, first a BS1, then right away went to a BS2. at the time I think they were $99 for a BS2. Well I almost rightawat burned an output and couldn't bear the thought of another $100 for a $2 chip. So that lead me to PIC's. internet was plain ole telephone for me at the time, so getting the DS for a 16F676 was a chore. I printed the entire thing and off I went. I remember I made 1 phone call to uChip support (yes they answered my question over the phone)

    ASM is not that hard, it is just a pain at times since there is not really any powerful instructions.

    I for one am more then happy to help if you want it, maybe in the off topic section? Just like any PBP program, you need to know what you want to do and you can get there. I am certain there are others here that can and prolly will help, so start asking questions and you will get there.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    I have gone Bert's route as well. Also looked a lot at other people's assembly to get some ideas.

    Here are some tutorials, that I thought were pretty good, and some more assembly info:
    http://www.picbasic.co.uk/forum/showthread.php?t=222

    Darrel often says the best way to learn is by looking at the *.lib files, like pbppic18.lib. The assembly is pretty well documented there. More info in his post here: http://www.picbasic.co.uk/forum/showthread.php?t=6363&p=38604#post38604
    Last edited by ScaleRobotics; - 7th August 2011 at 19:20.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    http://www.gooligum.com.au/tutorials.html

    http://www.winpicprog.co.uk/pic_tutorial.htm

    Look the example in various Microchip appnote and tutorials included in PICKIT 2/3.

    All Books from Square 1.

    Join Microchip forum and try to help the other member. Amazing how fast you'll learn this way :P

    I'm a self taught guy.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    Thanks for your input guys...I'll plod on a bit longer using some of the suggestions.

    Thanks for the offer (as ever) of help Bert....this one may well end up as a thread in the off topic section!

  6. #6
    Join Date
    Aug 2011
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    I wouldn't say I know enough about assembly to offer suggestions however,

    I bought "PIC'n up the pace" from Square1 before I knew there was even more then one programming language for PIC's. The books seems like a excellent book for learning assy. I hardly know anything about programming micro's and I could almost understand some of the syntax that are taught.

    http://www.sq-1.com/

    I imagine the prerequisite for this book "Easy PIC'n" would have been a better choice for me, but I found this one at a half priced book store so I couldn't really pass it up.
    I look forward to the day I can move onto learning assembly though.

    Good luck!!
    I am microcontroller stupid!!

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: How/where to learn Assembly?

    Quote Originally Posted by HankMcSpank View Post
    Thanks for your input guys...I'll plod on a bit longer using some of the suggestions.
    Word of the day... plod:
    v.intr.
    1. To move or walk heavily or laboriously; trudge: "donkeys that plodded wearily in a circle round a gin" (D.H. Lawrence).
    2. To work or act perseveringly or monotonously; drudge: plodding through a mountain of paperwork.
    I learnt my one thing for today, I can die now
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts