Jump to content

1 post in this topic

Recommended Posts

Posted (edited)

Hello

 

I have 3 questions

 

- What is .W?

- what does it do?

- what happen if i remove the .W?

 

in some games, they have ADD.W, LDR.W, STR.W, MOVW and MOVT.W. i did look into ARM online book but i can't find it and i don't know what W is called

 

EDIT: now i know what .W means.

 

 

.W means wide. ex. ADD Wide. Wide is only used in thumb binaries. This allows the instruction to hold a larger integer value greater than the standard 255 which is the max on non wide thumb instructions. Wide also has other uses but generally you would only use it to get a higher integer value.

 

You have 2 options when editing a wide instruction. You can replace it with another wide instruction or you can do something like this

 

ADD.W -> NOP MOV

 

2 non wide instructions together = 4 bytes which is the size of a wide instruction.

Updated by evildog1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines