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
[–] 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