I’m reading this on my lunch breaks:

image

  • jason@discuss.online
    link
    fedilink
    English
    arrow-up
    3
    ·
    5 months ago

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

    • glibg10b@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 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
        ·
        5 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.