SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Kashmir and hexadecimal number handling (https://www.subsim.com/radioroom/showthread.php?t=86376)

Stiebler 11-09-05 09:47 AM

Kashmir and hexadecimal number handling
 
Can anyone describe how Ubisoft's Kashmir data program for SH3 uses its hexadecimal numbers?

To take an example at random, chosen because the answer should be simple when using a hex editor, data file NSS_Uboat9D2.sim gives the surface range at 10 knots, with 10 knots described as "(00) 80 40 22 (00)". The submerged range is given, with 4 knots described as "(00) 20 41 26 (00)". There's no indication as to whether the numbers are taken as four-byte words, or as some other quantity. Nor whether the convention is used of reading the hex numbers forward or backward. Yet one of these numbers should be 2.5 times the other, whatever internal units Kashmir uses!

I'm aware of TimeTraveller's SH3 Analyzer and SH3 Inspector. Oddly enough, neither describes the solution, which is a pity if your real problem doesn't fit these tools.

rogerbo 11-09-05 09:55 AM

Most data are Float (32) Integers backward so they'r rather easy to identify and to handle

Stiebler 11-09-05 01:43 PM

Rogerbo said:

Quote:

Most data are Float (32) Integers backward so they'r rather easy to identify and to handle.
Thanks,
Stiebler.


All times are GMT -5. The time now is 11:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.