How to learn assembely?


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Hi Amindzo,

    try http://www.mikroe.com/en/books/picbook/0_Uvod.htm

    and you can progressively read-on line and use it. Hope you will love it.
    Regards,
    Sarma

  2. #2
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi mvs_sarma,
    thank you very much.it is very useful!

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Is there a tutorial (in pdf) from Microchip available?

    ken

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    Hi,

    Is there a tutorial (in pdf) from Microchip available?

    ken
    I'm sure there's a lot of tutorial's around the internet on assembly, just nothing specific to a PIC, and I haven't seen anything lately. There's a few books out there that do assembly fairly well (myke predko springs to mind).
    Once you get into the assembly part of the PIC, you'd be surprised at how close PBP really is to assembly, different names for commands (and a few more variations thereof), but you get the same end results.

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


    Did you find this post helpful? Yes | No

    Default

    Ken, you can also download the French tutorial from Bigonoff. Outdated, but nice to begin.

    Many good old assembler tutorial books from Microchip (can't tell if there's still available), also any of Square 1 are nice (PIC'n up the Pace, Easy PIC'n etc etc)
    Steve

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

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    well I have been told that picbasic is a lot slower and have more overhead (memory space) then assembly for sure, but also C. Would C be better to learn if performance is a goal.

    k

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    well I have been told that picbasic is a lot slower and have more overhead (memory space) then assembly for sure, but also C. Would C be better to learn if performance is a goal.

    k
    Look at a PBP's compiled/assembled program, then take a look at that same PBP source code. You'll see that they are very similar in size and function.
    I have found that there is very little overhead when dealing with PBP and as far as speed goes, that goes with overhead. If your functions in PBP are complex, then so will the final assembly code. That goes for any language. Even if you're programming in straight assembly. If you've got something complicated to do, then it's going to take complicated steps to get complicated work done.

    Now then, if this person that told you that PBP was slower and bloated with overhead, but this person was actually talking about the BasicStamp (and it's happened many times before), then yes, the BasicStamp is a lot slower, because it is an interpreted language, and does have a lot of memory and CPU cycle overhead because it is interpreted on the fly. PBP is pre-compiled before being burned into the chip.

    It's a lot like learning how to do something the first time.
    Either you can read a book and memorize each step ahead of time so you can do the task without stopping (PBP)......or you can put the book 20ft away from you on the other side of the room and refer to it for each step of the task (BasicStamp).

    And as far as learning C goes....to each their own. I don't see (C ) any advantage in using C with the PICs, maybe the larger dsPICs and maybe the 24F series, but not in the 10F/12F/16F/18F range. A program written for PBP and a similar functioning program written in C will most likely compile down to the same functionality, speed, code size (all other things being equal), and probably the exact same code itself.
    Last edited by skimask; - 4th May 2007 at 19:08.

Similar Threads

  1. Can you teach a PIC to learn?
    By lew247 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st December 2009, 01:06
  2. help converting assembely program
    By ahmed_salah in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 7th August 2008, 15:28
  3. How do you learn best?
    By T.Jackson in forum Off Topic
    Replies: 41
    Last Post: - 30th May 2008, 14:32
  4. Who wants to learn...
    By Stoverus in forum Off Topic
    Replies: 1
    Last Post: - 21st October 2006, 07:08
  5. How to learn PIC BASIC compiler in 7 days?
    By luqman83salleh in forum General
    Replies: 2
    Last Post: - 13th August 2004, 14:15

Members who have read this thread : 0

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