book (quokk.au)
submitted 8 months ago by to c/mop
 

I'm reading this on my lunch breaks:

image

you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 8 months ago (3 children)

Does this count?

PIC18(L)F2X/4XK22 Data Sheet

  • source
  • hideshow 3 child comments
  • [–] 3 points 8 months ago* (2 children)

    Nice, that's a beast you got there. Some of those 8 bit pics don't have enough flash for printf.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 8 months ago (1 child)

    What's funny is we're coding something fairly simple in assembly at my university, so even this PIC's resources are overkill for us (PIC18F45K22)

    Having more instructions would be nice, though. Any loop other than a simple decfsz-goto loop requires some ingenuity

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 8 months ago

    Nice. Asm probably has an advantage here. C's stupid integer promotion rules can sneak up on you and also blow up flash use. To avoid it, you need to cast everything in every math expression.

  • source
  • parent