Jump to content

Photo

Hex Editors


8 replies to this topic

#1 Shawn OFFLINE  

Shawn

    As Above

  • 18,855 posts
  • So Below

Posted Tue Dec 13, 2005 12:09 AM

Hey All,

Can anyone recomend a Hex Editor that is easy to cut BIN's in half with? I have tried a few but I want one that is "point and shoot" easy. I need mainly for distella to make 8k games into 4k chunks.

Thanks,

Shawn Sr.

#2 Tom OFFLINE  

Tom

    Moonsweeper

  • 455 posts
  • Location:Switzerland

Posted Tue Dec 13, 2005 12:35 AM

Why a hex editor ? All you need is dd.

dd if=8krom.bin of=bank0.bin count=4096 bs=1
dd if=8krom.bin of=bank1.bin count=4096 bs=1 skip=4096

Simple and powerful.

#3 Shawn OFFLINE  

Shawn

    As Above

  • Topic Starter
  • 18,855 posts
  • So Below

Posted Wed Dec 14, 2005 12:08 AM

Why a hex editor ? All you need is dd.

dd if=8krom.bin of=bank0.bin count=4096 bs=1
dd if=8krom.bin of=bank1.bin count=4096 bs=1 skip=4096

Simple and powerful.

View Post



dd? :?

#4 Tom OFFLINE  

Tom

    Moonsweeper

  • 455 posts
  • Location:Switzerland

Posted Wed Dec 14, 2005 3:36 AM

A standard Unix utility. Everybody running Windows should have a Cygwin or GnuWin32 installation.

#5 Shawn OFFLINE  

Shawn

    As Above

  • Topic Starter
  • 18,855 posts
  • So Below

Posted Wed Dec 14, 2005 11:27 AM

A standard Unix utility. Everybody running Windows should have a Cygwin or GnuWin32 installation.

View Post



downloaded it and used cygwin and I keep getiing this error message and I don't know why:

dd: opening '8kfile.bin' : No such file or directory

Any idea's? Do I need to use a specfic directory? I tried copying my 8kfile.bin into the cygwin working directory but no go.

Edited by silver_surfer, Wed Dec 14, 2005 2:57 PM.


#6 Tom OFFLINE  

Tom

    Moonsweeper

  • 455 posts
  • Location:Switzerland

Posted Wed Dec 14, 2005 5:50 PM

A standard Unix utility. Everybody running Windows should have a Cygwin or GnuWin32 installation.

View Post



downloaded it and used cygwin and I keep getiing this error message and I don't know why:

dd: opening '8kfile.bin' : No such file or directory

Any idea's? Do I need to use a specfic directory? I tried copying my 8kfile.bin into the cygwin working directory but no go.

View Post


You did use the correct filenames, right ? "8krom.bin", "bank0.bin" and "bank1.bin" in my first post were of course only placeholders. You have to substitute them with the real filenames you want to use. If that isn't the problem, post the whole command line you're using.

#7 Shawn OFFLINE  

Shawn

    As Above

  • Topic Starter
  • 18,855 posts
  • So Below

Posted Thu Dec 15, 2005 10:35 AM

A standard Unix utility. Everybody running Windows should have a Cygwin or GnuWin32 installation.

View Post



downloaded it and used cygwin and I keep getiing this error message and I don't know why:

dd: opening '8kfile.bin' : No such file or directory

Any idea's? Do I need to use a specfic directory? I tried copying my 8kfile.bin into the cygwin working directory but no go.

View Post


You did use the correct filenames, right ? "8krom.bin", "bank0.bin" and "bank1.bin" in my first post were of course only placeholders. You have to substitute them with the real filenames you want to use. If that isn't the problem, post the whole command line you're using.

View Post



yes I know you where using dumy names 8kfile.bin means nameofmygame.bin

The exact string I'm unsing is exactly what you have posted to use. I'm runnig WIN XP PRO Build 2600 with Service pack 2 if that makes a difference.

#8 Tom OFFLINE  

Tom

    Moonsweeper

  • 455 posts
  • Location:Switzerland

Posted Thu Dec 15, 2005 12:56 PM

Sorry, you're doing obviously something wrong, but I really don't know what it could be (the command I posted above is correct)

You don't need to put files in specific directories, but you must either pass the full path to the input file to dd, or you change to the directory the input file is in and only pass the file's name, without path information.

Iirc Cygwin also doesn't treat filenames case sensitive (Unix systems do so), so it shouldn't matter wether you pass "X.FOO" or "x.FOo" for a filename.

#9 Nukey Shay OFFLINE  

Nukey Shay

    Sheik Yerbouti

  • 21,886 posts
  • Location:The land of Gorch

Posted Thu Dec 15, 2005 1:33 PM

All this worry about filenames and such? :P

I just use a freeware program called HJ Split. Cuts files into any size fragments.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users