Society of Robots - Robot Forum

Software => Software => Topic started by: aruna1 on September 25, 2010, 08:43:31 PM

Title: assembly language tutorial
Post by: aruna1 on September 25, 2010, 08:43:31 PM
hi guys
I use C language to programme PIC micro controllers and has no idea about assembly language.
I want to learn assembly language so can someone please point me to a good tutorial where I can learn from the beginning.
Thank you
Title: Re: assembly language tutorial
Post by: macdad- on September 25, 2010, 08:57:56 PM
It depends upon the processor your wanting to work with, but generally the PICs have a roughly standard ASM instruction set for all their microcontrollers. This tutorial is specifically over the 16F84 PIC:
http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm (http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm)

Just Google search the part number of your PIC chip and assembly, to find the specific instruction set it has to offer.

Just as an FYI, unless you need the PIC chip your working with to be ultra-time critical, then I suggest you stick with C. ASM after a while drains your focus, believe me I've programmed with the 65816C Chip(The one used in the Super NES) and it's Assembly is a mental ordeal  :P , but then again it was a microprocessor not a microcontroller(Having to address external chips vs all-in-one hardware registers for a microcontroller)

So its up to you whether or not to go with ASM or stick with C.

Hope this helps
,macdad-(Nick)
Title: Re: assembly language tutorial
Post by: aruna1 on September 25, 2010, 09:04:34 PM
hi macdad-
thanks for the quick reply.
I peronnaly loves C language,but engineering course I'm folowing requires knowladge of asm,thats why I'm trying to learn asm. :)
Title: Re: assembly language tutorial
Post by: waltr on September 26, 2010, 08:22:23 AM
Another tutorial that covers PIC Asm is:
http://www.gooligum.com.au/tutorials.html (http://www.gooligum.com.au/tutorials.html)

It is good to know some assembler for two reasons.
1- you can understand what example code is doing like the code in many of Microchip's app notes.
2- You can write routines that need to be very fast in assembler then link these into the C code.
Title: Re: assembly language tutorial
Post by: aruna1 on September 26, 2010, 08:46:15 AM
thanks waltr