Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

General Dreamcast discussion applies here. Before posting here please check the other forums in the Dreamcast section to see if your topic would fit better in those categories.

Moderators: pcwzrd13, mazonemayu

Forum rules
Please check the other forums in the Dreamcast section before posting here to see if your topic would fit better in those categories. Example: A new game/homebrew release would go in the New Releases/Homebrew/Emulation section: http://dreamcast-talk.com/forum/viewforum.php?f=5 or if you're having an issue with getting your Dreamcast to work or a game to boot it would go in the Support section: http://dreamcast-talk.com/forum/viewforum.php?f=42
SMiTH
Black Mesa
Posts: 1496

Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#1 » Wed Aug 19, 2015 11:31 pm

Example on PSO PC:
eb 21 90 7f ff ff

What would it look like on PSO DC?

User avatar
Aleron Ives
Outrun
Posts: 1117
Contact:

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#2 » Thu Aug 20, 2015 12:02 am

What is it? :lol: I'm pretty sure the SH4 is LE, just as x86 CPUs are. IIRC GC is the only BE PSO platform, thanks to its PPC CPU.
"Fear the HUnewearl."
Image

SMiTH
Black Mesa
Posts: 1496

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#3 » Thu Aug 20, 2015 12:05 am

Well I need to know how the bytes are reversed from the example I posted.
Can you please post the example of what it would look like on DC?

That code came to mind it might be a bit off since I havent looked at PSO PC Hex since 2007.
I think it is the code for noree's stat modifier ?

I am sure its fairly simple to see what I am wanting to do here lol

When PSO DC is viewed in memory editor the byte order is the same as PSO PC. (<--at least from what i remember?)
But when viewing PSO DC in hex editor the byte order is reversed.
Just trying to get the exact way the bytes are reversed.
I could figure it out on my own..going the lazy route is all.

User avatar
Aleron Ives
Outrun
Posts: 1117
Contact:

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#4 » Thu Aug 20, 2015 1:27 am

No, I have no idea what you're talking about. Those are just some random numbers with no meaning to me.
"Fear the HUnewearl."
Image

SMiTH
Black Mesa
Posts: 1496

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#5 » Thu Aug 20, 2015 3:18 pm

Ok, forget the code I posted earlier it doesnt matter what the code is.

I just want a simple answer as to what the hex would look like on DC (viewing pso v2 1st read in hex editor)

Sample Random Hex Values for PSO PC (viewing pso.exe in hex editor):

89 E3 47 3A 2E 7F 91 03 <---What would this look like on PSOv2 1st read

Just like the vmu save files&1st read bin the byte order is reversed.
If you do not want to help me that is ok.
I'm not going to get upset about it.
Do as you wish.

It will save me time of figuring it out on my own if you could answer.

User avatar
Aleron Ives
Outrun
Posts: 1117
Contact:

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#6 » Thu Aug 20, 2015 3:38 pm

Both games are little endian. A DC pointer reading A606338C points to offset 0x3206A6. A PC pointer reading E58F6B00 points to offset 0x2B8FE5. More importantly, 1ST_READ.BIN is not related to PSO at all. It's just a DC bootloader. The DC equivalent to pso.exe is DP_ADDRESS.JPN, and that file is compressed on the GD-ROM. The only known way to decompress it is to boot the game in nullDC and then dump the raw DP_ADDRESS.JPN from the RAM.
"Fear the HUnewearl."
Image

SMiTH
Black Mesa
Posts: 1496

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#7 » Thu Aug 20, 2015 5:00 pm

Thats how I was viewing the data through memory editor and both were same. (PC/DC)
Isnt dp_address decompressed in MAG94?
That would make since why hex values were not found in 1st read that i was looking for.
I will check dp_address.
To make those dns codes for codebreaker I had to view in memory editor then reverse it in hex.
I was trying to do the same in patching the pso dc-iso for other mods from april 5.

User avatar
Aleron Ives
Outrun
Posts: 1117
Contact:

Re: Big Endian, Little Endian--PSO PC/DC--Aleron or BlueCrab

Post#8 » Fri Aug 21, 2015 3:25 am

An early MAG94 binary is decompressed. Later ones are decompressed and encrypted. All of the MAG94 binaries are pretty messy (captured after the game had been running for a while, so lots of pointers and other data has been loaded into the exe's whitespace).
"Fear the HUnewearl."
Image

Return to “Lounge”

Who is online

Users browsing this forum: Google [Bot]