-
Notifications
You must be signed in to change notification settings - Fork 49
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
Identify *a = *b
bulk copy
#279
Comments
We have a few patterns implemented for this already, but it's pretty fragile. Can you post the asm that resulted in the above? |
There are a few in weapon funcs, links below. https://decomp.me/scratch/udWNi
https://decomp.me/scratch/p4pzA
https://decomp.me/scratch/MnTB0
|
Slightly different pattern here: https://decomp.me/scratch/ra0BJ c: addiu a3,sp,0x10
10: lui a2,%hi(g_Entities)
14: addiu a2,a2,%lo(g_Entities)
18: addiu t0,a2,0xb0
2c: ~> lw v0,0(a2)
30: lw v1,4(a2)
34: lw a0,8(a2)
38: lw a1,0xc(a2)
3c: sw v0,0(a3)
40: sw v1,4(a3)
44: sw a0,8(a3)
48: sw a1,0xc(a3)
4c: addiu a2,a2,0x10
50: bne a2,t0,2c ~>
54: addiu a3,a3,0x10
58: lw v0,0(a2)
5c: lw v1,4(a2)
60: lw a0,8(a2)
64: sw v0,0(a3)
68: sw v1,4(a3)
6c: sw a0,8(a3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've seen this pattern in sotn decomp:
...which matches as:
The text was updated successfully, but these errors were encountered: