Skip to content

x86 negative immediate matches positive immediate #197

@1superchip

Description

@1superchip

-0x8 is not being considered different than 0x8 as an immediate.

Possibly needs to update the re_imm regex to capture -

Current regex:
re_imm=re.compile(r"-?(0x[0-9a-f]+|[0-9]+)|([\?$_][^ \t,]+)")

Image

Scratch: https://decomp.me/scratch/3rDWd

Image:
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions