I’m reading this on my lunch breaks:

image

  • glibg10b@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 months ago

    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

    • jason@discuss.online
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 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.