mirror of
https://github.com/corda/corda.git
synced 2025-06-02 15:40:53 +00:00
fix offset encoding for strhi instruction
This commit is contained in:
parent
d37cb93d50
commit
98a1fefefc
@ -304,7 +304,7 @@ uint32_t strbi(Register Rs, Register Rn, int offset)
|
|||||||
|
|
||||||
uint32_t strhi(Register Rs, Register Rn, int offset)
|
uint32_t strhi(Register Rs, Register Rn, int offset)
|
||||||
{
|
{
|
||||||
return 0x79000000 | (offset << 10) | (Rn.index() << 5) | Rs.index();
|
return 0x79000000 | ((offset >> 1) << 10) | (Rn.index() << 5) | Rs.index();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t stri(Register Rs, Register Rn, int offset, unsigned size)
|
uint32_t stri(Register Rs, Register Rn, int offset, unsigned size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user