RISC-V Linksverschiebung?

1 Antwort

Ich finde nur ein SLLI:

slli rd,rs1,shamt
Performs logical left shift on the value in register rs1 by the shift amount held in the lower 5 bits of the immediate
In RV64, bit-25 is used to shamt

----

wenn in Register s1 nun 0x13d

0x01 3d = 00000001 0011 1101, also: 1 1101 (=29) Stellen nach links shiften.

1010 0000 0000 0000 0000 0000 0000 0000

^^^^^Das hier ist zweifelsohne eine 10, also 0xA... .