Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add restrictions to stack pointer value #5

Open
esaulenka opened this issue Apr 24, 2020 · 0 comments
Open

add restrictions to stack pointer value #5

esaulenka opened this issue Apr 24, 2020 · 0 comments

Comments

@esaulenka
Copy link
Owner

now simple push r3 converted to ugly

  *(undefined2 *)
   ((uint3)((ushort)(((ushort)auStack2 & 0xc000) == 0) * 2 |
            (ushort)(((ushort)auStack2 & 0xc000) == 1) * 0x380 |
            (ushort)(((ushort)auStack2 & 0xc000) == 2) * 0x381 |
           (ushort)(((ushort)auStack2 & 0xc000) == 3) * 3) << 0xe |
   (uint3)((ushort)auStack2 & 0x3fff)) = param_2;

Perhaps should be designed separate mem table special for pop/push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant