+grafixbmp Posted August 29, 2010 Share Posted August 29, 2010 I used notepad to do quite a bit of graphics and now I want to prep it for insertion into code but don't want to go through line by line to put it in backwards. Are there any quick methods for taking a block of binary and reversing the byte order? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted August 29, 2010 Share Posted August 29, 2010 If its in binary then use a programmers editor that can do column cut and paste. Quote Link to comment Share on other sites More sharing options...
RevEng Posted August 29, 2010 Share Posted August 29, 2010 Use the "tac" command-line utility to reverse the lines of text in a file. It will be on most linux systems, and you can download it for Windows too. Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted August 29, 2010 Share Posted August 29, 2010 I used notepad to do quite a bit of graphics and now I want to prep it for insertion into code but don't want to go through line by line to put it in backwards. Are there any quick methods for taking a block of binary and reversing the byte order? My sprite converter will spit it out both ways. The GIF needs to be online, you can put it on AA and it'll work, as shown in replies 5 & 6 of this thread. Besides the 8 pixel converter, I have other online converters for the Medieval Mayhem dragon format, 48 pixel graphic and 96 pixel graphic. Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted August 29, 2010 Share Posted August 29, 2010 If its in binary then use a programmers editor that can do column cut and paste. The free Crimson Editor can do column mode copy/cut/paste. You could also create a macro to do this and save it. Michael Quote Link to comment Share on other sites More sharing options...
+grafixbmp Posted August 30, 2010 Author Share Posted August 30, 2010 Just to clarify, I am not referring to reversing each byte as in 00100110 to 01100100 (not this) I mean like this: 00011000 01111110 00011000 00111100 01100110 This block of data... 01100110 00111100 00011000 01111110 00011000 becomes this. This is what I need to do in mass. Which method mentioned above would be the easiest approach? Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted August 30, 2010 Share Posted August 30, 2010 Which method mentioned above would be the easiest approach? If you have loads of data to convert and you know C/C++/Perl/Python etc. its probably easier to write yourself a little conversion app to automate the process. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 30, 2010 Share Posted August 30, 2010 Visual batari Basic can do that: http://www.randomterrain.com/atari-2600-memories-batari-basic-vbb.html#codeeditorfliptext Quote Link to comment Share on other sites More sharing options...
RevEng Posted August 30, 2010 Share Posted August 30, 2010 (edited) This is what I need to do in mass. Which method mentioned above would be the easiest approach? It depends on what's easy for you. If CLI isn't a problem for you, the tac is easy... tac myfile.txt > myfile2.txt ...But that example assumes tac is in PATH, and you've used "cd" to get in the same directory as your file. If that last sentence isn't clear, its probably easier to go with another solution. Edited August 30, 2010 by RevEng Quote Link to comment Share on other sites More sharing options...
Omegamatrix Posted August 31, 2010 Share Posted August 31, 2010 This literally takes a few seconds in excel. No fancy scripts needed at all. I've attached a short video to show how. Just use 7-zip to extract the inner file. DataReverse.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.