Skip to content
Guest Big Announcement

Featured Replies

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.