XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Oct 24, 2017 6:38 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Little endian to Big Endian
PostPosted: Thu Sep 22, 2016 2:49 pm 
Offline
n00b

Joined: Fri Nov 07, 2014 9:19 pm
Posts: 17
Has thanked: 4 times
Have thanks: 1 time

Hello my friends :)
I need to edit the file in a sequence of bits
ABCD on DCBA :D
Image

there is a program or script on this one ? my english is sux sorry
tnx for reply

progress:

get SIZE asize
math OFFSET = 4
math SIZE -= OFFSET
goto OFFSET
math SIZE /= 4
for i = 0 < SIZE
get TMP long
next i

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Little endian to Big Endian
PostPosted: Sun Sep 25, 2016 10:46 am 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 590
Has thanked: 19 times
Have thanks: 215 times
If the whole file is just 32-bit integers (unlikely). You could probably open the file in Winhex then perform a 32-bit byte-swap on the whole file.

Cheers.

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: Little endian to Big Endian
PostPosted: Fri Oct 28, 2016 9:21 pm 
Offline
n00b

Joined: Thu Aug 02, 2012 1:52 pm
Posts: 11
Has thanked: 1 time
Have thanks: 0 time
You can use 010 editor.

"Tools > Hex Operations > Swap"


Top
 Profile  
 
 Post subject: Re: Little endian to Big Endian
PostPosted: Sat Nov 05, 2016 12:35 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
from the quickbms manual:
MATH TMP s 4
swaps a long

using it with a (little endian) binary file: 12 34 56 78
(insert print "%TMP%" for logging the variable)
result:
before
- SCRIPT's MESSAGE:
2018915346 (-> 0x78563412)
after
- SCRIPT's MESSAGE:
305419896 (-> 0x12345678)


_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group