Page 1 of 1

What code is this?

Posted: 26 Nov 2012 04:52
by RogerSmith
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?

Re: What code is this?

Posted: 26 Nov 2012 05:08
by foxidrive
Yes it is a hex string.

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

Re: What code is this?

Posted: 26 Nov 2012 05:26
by Ed Dyreen
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..

Re: What code is this?

Posted: 26 Nov 2012 18:26
by RogerSmith
Hi!

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


regards