C and assembly

Status
Not open for further replies.

Nick'

New Member
I know C and assembly (GAS and INTEL syntax). However, when i learnt about PIC programming, the assembly language for it is a little bit different. Can i use the assembly 32 bit syntax on my 8-bit PIC? What i mean is instead of use movl eax, ebx;, i will use movl al, bl (these are for 8 bits).

If i can't, thaen what should i do? Learn the assembly for PIC? Is there any good tutorial on that?

Can i code it in C? Is there any tutorials on how to use the libraries?
 
There's loads of help for PIC's, and like any processor you have to use assembler specific to that device - neither of the two examples above are PIC assembler though.

Read the sticky at the top of this forum for lot's of links.
 

**broken link removed** Here's a fantastic PIC Assembly tutorial, it's what I used. All you really need is the basics, then the datasheet will tell you how to use the specific peripherals for each chip (usually giving assembly code examples.)
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…