I'm trying to multiply a 32-bit unsigned number by 2 across registers
r18 being the most significant byte. This is my code:
ldi r18, 0x03 ldi r19, 0x00 ldi r20, 0x00 ldi r21, 0x00 lsl r18 ror r19 ror r20 ror r21
Just used 3 for an easy example so I will know the output. I can't work out whether it's
rol for the rest of the registers. For a 16-bit number you would use
ror to account for a carry, does this also apply for unsigned 32-bit numbers?
Am I supposed to use