What code is this?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
RogerSmith
Posts: 22
Joined: 20 Nov 2012 12:42

What code is this?

#1 Post by RogerSmith » 26 Nov 2012 04:52

hi all , sorry my ignorance

in a previous post i find this code:
This is from the sokobam game

"7D04A17CF1AB8CE4368FF54B635B7B937899E01B5D2ACA52CBB8CA00F02EED8C175C7D"
"AFE3717E67C738E2B4A30C6D38D10327F47FACE9710030"

What is this? is it hex? what is it , any one know?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: What code is this?

#2 Post by foxidrive » 26 Nov 2012 05:08

Yes it is a hex string.

You can encode a binary into a text file, often by using hex strings.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: What code is this?

#3 Post by Ed Dyreen » 26 Nov 2012 05:26

RogerSmith wrote:hi all , sorry my ignorance

in a previous post i find this code:
This is from the sokobam game

"7D04A17CF1AB8CE4368FF54B635B7B937899E01B5D2ACA52CBB8CA00F02EED8C175C7D"
"AFE3717E67C738E2B4A30C6D38D10327F47FACE9710030"

What is this? is it hex? what is it , any one know?
That's right,

In computers every file is stored as a series of bits. each bit represent 0 or 1. Each 8 bits is called a byte.
Bytes are usally displayed in hexadecimal format as it is easier to be read by humans.
Suppose you have a file contained of a series of hex codes but you don't know what the file represents.
If you examine the file with a hexEditor you can get a quick ASCII representation.
If there is a string in the beginning like "This program cannot be run in DOS mode" then you are dealing with a windows .COM or .EXE file.
If I'm not mistaken on a RISK processor, each instruction and params is exactly one byte.
for example the following assembly code:
MOV ax, bx
makes 1 instruction + 2 operands = 3 bytes.
when a program is compiled, it has to be translated to machine instructions and data.
These rows of zeros and ones are usually translated to hex for us to read.
If that exites you, there is a nice PDF document called The Art Of Assembly Language.

I assimilate a few pages now and then..

RogerSmith
Posts: 22
Joined: 20 Nov 2012 12:42

Re: What code is this?

#4 Post by RogerSmith » 26 Nov 2012 18:26

Hi!

Thanks for all the replys , i can see clearly now.


regards

Post Reply