Added crash function

This commit is contained in:
Eduard Urbach 2025-03-14 09:52:00 +01:00
parent e367b664bb
commit 716cc6dddd
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 19 additions and 27 deletions

View file

@ -16,7 +16,7 @@ restart:
for i, pointer := range c.codePointers {
address := pointer.Resolve()
if sizeof.Signed(int32(address)) > int(pointer.Size) {
if config.TargetArch == config.X86 && 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