ARM64 Instruction Conversion for DCFS
ARM64 Instruction Conversion for DCFS
As far as I understand, DCSF is a single-precision floating-point literal. I have this instruction, DCFS 0.00001 converting to AC C5 27 37. I am trying to convert DCFS 30 but cannot find any converter that can perform it. Can anyone convert it for me, and preferably, show me how it was done? Thank you!
I'm simply modifying a game via hex edit. I am trying to change it from DCFS 0.0001 to DCFS 30.0.
– Ja Guz
Jul 1 at 13:02
If you were modifying and building the code from source, I'd accept that this was a programming issue and therefore a suitable issue for SO. As it is that does not appear to be what you are doing, so I think you are on the wrong site for this question. Moreover you really did not try very hard. I found such a tool just by Googling "convert real number to ieee 754" and found: h-schmidt.net/FloatConverter/IEEE754.html. The answer is
00 00 0F 41
(in little-endian order).– Clifford
Jul 1 at 20:01
00 00 0F 41
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
It is not clear to me what you are asking. The only mention of DCFS I can find in relation to ARM64 is your question. How was the 0.00001 value "converted"? Perhaps you need to specify the value as 30.0 to avoid it being interpreted as an integer.
– Clifford
Jul 1 at 12:54