C or Assembly



Which is better to program in, in general, for Microchip's pics; C or
Assembly? I am personally more fond of assembly but after trying a little
using microchips "31 instructions" its a bit daunting. I really don't want
to waste my time extending the instruction set just cause they want to hype
it up with making it small as possible. Not sure why the stopped at 31...
"Only 5 easy instructions to learn!!!".

Are there any drawbacks to using C(besides bloating?)?

While I don't mind using assembly I know that I will just end up making many
macros to do what I want and it will basicaly end up as more of a HLL
anyways so I probably should just go with C from the start. I'm mainly used
to Masm syntax and semantics anyways and Microchip's synatic can be strange
at times(and annoying when you only have one register to work with(I mean
"W").

From glancing at some C code it seems much easier to do things like setting
"File Registers" and such(I definately hate the INDR method for working with
"pointers") but I should be able to accomplish that with a macro(assuming
they have good macro functionality which I haven't checked out yet).



Thanks,
Jon


.



Relevant Pages

  • Re: C or Assembly
    ... Abstract Dissonance wrote: ... you need a reading level understanding of PIC ... "Only 5 easy instructions to learn!!!". ... they have good macro functionality which I haven't checked out yet). ...
    (sci.electronics.basics)
  • Re: C or Assembly
    ... "Only 5 easy instructions to learn!!!". ... mainly used to Masm syntax and semantics anyways and Microchip's synatic ... setting "File Registers" and such(I definately hate the INDR method for ... macro(assuming they have good macro functionality which I haven't checked ...
    (sci.electronics.basics)
  • Re: C or Assembly
    ... want to waste my time extending the instruction set just cause they want ... "Only 5 easy instructions to learn!!!". ... setting "File Registers" and such(I definately hate the INDR method for ... macro(assuming they have good macro functionality which I haven't checked ...
    (sci.electronics.basics)
  • Re: C or Assembly
    ... I am personally more fond of assembly but after trying a little using microchips "31 instructions" its a bit daunting. ... From glancing at some C code it seems much easier to do things like setting "File Registers" and suchbut I should be able to accomplish that with a macro(assuming they have good macro functionality which I haven't checked out yet). ...
    (sci.electronics.basics)
  • Re: C or Assembly
    ... I am personally more fond of assembly but after trying a little using microchips "31 instructions" its a bit daunting. ... I really don't want to waste my time extending the instruction set just cause they want to hype it up with making it small as possible. ... From glancing at some C code it seems much easier to do things like setting "File Registers" and suchbut I should be able to accomplish that with a macro(assuming they have good macro functionality which I haven't checked out yet). ...
    (sci.electronics.basics)