Enabled arm64 encoding

This commit is contained in:
2025-03-06 16:54:28 +01:00
parent 5f522b519a
commit 7798eca074
9 changed files with 103 additions and 29 deletions

View File

@ -16,7 +16,7 @@ restart:
for i, pointer := range c.codePointers {
address := pointer.Resolve()
if sizeof.Signed(address) > int(pointer.Size) {
if sizeof.Signed(int32(address)) > int(pointer.Size) {
left := c.code[:pointer.Position-Address(pointer.OpSize)]
right := c.code[pointer.Position+Address(pointer.Size):]
size := pointer.Size + pointer.OpSize