AVR language code. Let A and B be 16-bit unsignedintegers. The product AB requires at most 32 bits. Thequotient A/B and remainder A%B each require at most 16 bits.
Modify the program to compute the quotient A/B and remainder A%Band store each value in memory as a 16-bit little-endian unsignedinteger.
For the 16-bit input operands A and B are pre-loaded into twopairs of registers (R17:R16 for A and R19:R18 for B). Do not modifythe ldi commands as they are already pre loaded.
Here is the code for reference
;divmod16
.cseg
.org 0
; Initialization code
; Do not move or change these instructions or the registers theyrefer to.
; You
PayPal Gateway not configured
PayPal Gateway not configured