Tutorial How to return float value in ARM32/ARMv7

AndnixSH

PMT Elite Modder
Staff member
Modding-Team
For more conversation, e.g. convert C++ double to ARM32 or ARM64, use Compiler Explorer. Check out this guide: Tutorial - How to convert C++ to ARM32/ARM64

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:
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.
 
How about you learn ARM assembly instead waiting to be spoonfeed? it won't take years
i can understand what you publish here but reading the ARM assembly doesnt help me get into what i need to learn. you just wrote the code for float and long value types and those were super amazing. just this arm64 is so hard to find in the web.
 
Back
Top Bottom