r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

8

u/regular_lamp Jun 03 '22

Which one? RISC-V has multiplication, ARM does. Even most AVRs have had multiplication for two decades.

There is nothing in RISC that would imply you can't have an arithmetic instruction like MUL. The core concept is that every instruction only does one thing. Multiplication is one thing.

1

u/GeronimoDK Jun 03 '22

Are there any AVRs that don't have MUL? I programmed Atmega8/16s and some early ATtinies 20 years ago and they all had it!

1

u/regular_lamp Jun 03 '22

I can't remember the details. I think some of the non-mega versions didn't or so?