HP Forums
How translate code in .raw ? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: How translate code in .raw ? (/thread-14626.html)



How translate code in .raw ? - ggauny@live.fr - 03-10-2020 10:36 AM

At Angel Martin and others experts in HP41.

Hello Sir,

As expert in HP41 you are, May I ask you a help ?
Well I have some binary or hexadecimal codes that I would like translate in .raw file for my V41 emulator, but I don't know to do this. Is existing program to do this translations ?
If I know the method, I can translate you see ?
Accept-you help me ? Thank in advance.

Gérard GAUNY.

The code I would like is : (a part of Julian Perry, Rubiks cube in 1982.)

01BBC000F20058133132331C193485C000F200591631325433
3485C000F2005A19311C1332333485C000F200540168678576
691B12423A71907311920E4113437190F2401640AEF32A970F
B100A8159F067E11123F872AB10008F37F442C13B20009F37F
443A12B2000AF27F4411029010CE13CE12CE11CE10CE18CE1B
CE1ACE199118719773B200850BF37F462C13B3000CF37F463A
12B3000DF27F461103689010CE11CE15CE1491109018CE1DCE
20CE1C9118119310921193159214921C9218769773B300850E
F37F4C2C13B4000FF37F4C3A12B400CF0FF27F4C1104689011
CE12CE16CE1591119019CE1ECE21CE1D911911931192129316
9215921D9219769773B40085CF10F37F422C13B500CF11F37F
423A12B500CF12F27F421105689012CE13CE17CE169112901A
CE1FCE22CE1E911A119312921393179216921E921A769773B5
0085CF13F37F522C13B600CF14F37F523A12B600CF15F27F52
1106689013CE10CE14CE179113901BCE1CCE23CE1F911B1193
13921093149217921F921B769773B60085CF16F37F552C13B7
00CF17F37F553A12B700CF18F27F5511079014CE15CE16CE17
CE14CE20CE21CE22CE239120719773B700C0000DBC


RE: How translate code in .raw ? - Thomas Okken - 03-10-2020 11:23 AM

The xxd program will do what you are looking for; it can create hex dumps of binary data, and also do the reverse:

Code:
$ xxd -r -p > foo.raw << EOF
(paste your hex data)
EOF

On Linux and MacOS, this is standard equipment; on Windows, you may need Cygwin, or build it from source.


RE: How translate code in .raw ? - Didier Lachieze - 03-10-2020 01:15 PM

You can also use the following on-line translator that will create a binary file from you hexadecimal strings: Hexadecimal -> file (binary)

Copy/paste the hexadecimal code to the Hex string input form, choose a file name ending in .raw, click on convert and save the result file. That’s all.


RE: How translate code in .raw ? - Ángel Martin - 03-11-2020 07:05 AM

The RUBIKS module including Julian Perry's programs is available at TOS and in the CL Library; the FOCAL programs can be printed or even COPYed from the ROM.

I still use Leo Duran's "UserCode" utilities for my TEXT <-> RAW conversions, it may be useful to you as well.


RE: How translate code in .raw ? - ggauny@live.fr - 03-11-2020 08:17 AM

Hi at you,

Many thank you for you help !
I'am going to try.