Tutorial How to return float value in ARM32/ARMv7

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,757
301,059
1,213
Modding World
I made the simple IEEE 754 converter tool for ARM AndnixSH/IEEE-754-Converter

Type any float value you want and get the hexadecimal for Little-endian

Then use ARM To HEX Converter Online to convert ARM instruction to hex bytes

Example number 1 is 0000803F (Little-endian), return like this

32-bit
Code:
MOV R0, 0x0000803F
If you have problem converting ARM instruction with higher numbers, just use one of the byte sequences below

Code:
1 = 0000803F
2 = 00000040
4 = 00008040
8 = 00000041
16 = 00008041
32 = 00000042
64 = 00008042
128 = 00000043
256 = 00008043
512 = 00000044
1024 = 00008044
2048 = 00000045
4096 = 00008045
8192 = 00000046
16384 = 00008046
32768 = 00000047
65536 = 00008047
131072 = 00000048
262144 = 00008048
524288 = 00000049
1048576 = 00008049
2097152 = 0000004A
4194304 = 0000804A
8388608 = 0000004B
16777216 = 0000804B
33554432 = 0000004C
67108864 = 0000804C
134217728 = 0000004D
268435456 = 0000804D
536870912 = 0000004E
1073741824 = 0000804E
-2147483648 = 000000CF
 
Last edited:

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,413
838,488
1,213
Minkowski Space
when it's integer I can use 12 07 A0 E3 1E FF 2F E1

but I can't use it for Float it just writes 0 , could you give me 1-2 different high Float armV7 hex values what i could use ?
i dont have the knowledge, just basic modding.
Are you sure there are no checks that make big enough numbers become 0?
Or maybe the value you edited gets increased later and thus bit system breaks because number obtained can't be stored?
Could it be the offset you're modifying is not the one you're looking for?

An extra insight:
This kind of instructions are surface level knowledge.
If you don't have the knowledge for using them, then acquiere it by researching. Arm assembly is a widely used and you can find information everywhere.
You can't be spoonfed everytime you have an issue because that doesn't create real modders.
You can start your research here.