Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.
 
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?

**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.

Latest threads

New Articles From Microcontroller Tips

Back
Top