On 10/14/22 07:52, Philippe Mathieu-Daudé wrote:
+ /* Sign extend the displacement with 21 bits. */ + delta = l & 0x1FFFFF; + if (delta & 0x100000) { + delta |= ~0x1FFFFF; + }
delta = sextract32(l, 0, 21); r~
On 10/14/22 07:52, Philippe Mathieu-Daudé wrote:
+ /* Sign extend the displacement with 21 bits. */ + delta = l & 0x1FFFFF; + if (delta & 0x100000) { + delta |= ~0x1FFFFF; + }
delta = sextract32(l, 0, 21); r~