How to return float value in ARM


I made the simple IEEE 754 converter tool for ARM https://github.com/AndnixSH/IEEE-754-Converter/releases

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

Then use http://armconverter.com/ to convert ARM instruction to hex bytes

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

32-bit
MOV R0, 0x0000803F

64-bit
MOV X0, 0x0000803F

If you have problem converting ARM instruction with higher numbers, just use one of the byte sequences below

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

Popular Posts

[TOOL] Unity Assets Bundle Extractor

Il2CppDumper GUI Android App