• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 184 185 186 187 188 ... 367 Next »

Dolphin-emulated Wii games' RAM data are in reversed byte-order, is it Wii-native?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin-emulated Wii games' RAM data are in reversed byte-order, is it Wii-native?
10-07-2012, 03:45 PM
#1
cimmy Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Oct 2012

I found that Dolphin-emulated Wii games place their data in RAM in a reversed byte-order.

for example, a number 256, in a PC's RAM, it's stored in this form: 00h, 01h.

but for Dolphin-emulated Wii games, the number 256 is 01h, 00h in RAM, reversed order compared to PC.

for Pcsx2-emulated PS2 games, the byte-order is normal, same as PC.

so I wonder, is this a Wii-native thing or a "feature" caused by Dolphin?
Find
Reply
10-07-2012, 04:07 PM
#2
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
The GC/Wii CPU uses a big endian representation of data.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
10-07-2012, 04:14 PM
#3
Axxer Offline
Why would I help you?
*******
Posts: 1,078
Threads: 28
Joined: May 2012
(10-07-2012, 04:07 PM)delroth Wrote: The GC/Wii CPU uses a big endian representation of data.

That is weird.

I guess that is just one more way to make a system though.
Desktop:
OS: Windows 7 64 bit
CPU: Intel Core i5 3570K @ 4.4 GHz
GPU: EVGA NVIDIA GeForce GTX 550 Ti (Factory OC'ed)
RAM: 16 GB @ 1600 MHz
Dolphin Revision:3.0, 3.0-784, 3.5, latest 3.5
Find
Reply
10-07-2012, 04:21 PM
#4
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Yeah, all these people writing numbers from left to right are so weird.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
10-07-2012, 04:36 PM
#5
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,013
Threads: 24
Joined: Oct 2009
(10-07-2012, 04:14 PM)Axxer Wrote:
(10-07-2012, 04:07 PM)delroth Wrote: The GC/Wii CPU uses a big endian representation of data.

That is weird.

I guess that is just one more way to make a system though.
delroth Wrote:Yeah, all these people writing numbers from left to right are so weird.


[Image: 19598.jpg]

"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
Reply
10-07-2012, 04:47 PM (This post was last modified: 10-07-2012, 04:58 PM by Axxer.)
#6
Axxer Offline
Why would I help you?
*******
Posts: 1,078
Threads: 28
Joined: May 2012
*pours iced water over burn*

*gets frostbite*

It's been so long since I took ICT and learned all of this stuff... I need to refresh my memory on this.

EDIT: so my world has been destroyed as I have finally decided to research some into x86 only to learn that it does little-endian instead of big-endian. So my perception of the world of CPU instruction sets has been altered forever.
Desktop:
OS: Windows 7 64 bit
CPU: Intel Core i5 3570K @ 4.4 GHz
GPU: EVGA NVIDIA GeForce GTX 550 Ti (Factory OC'ed)
RAM: 16 GB @ 1600 MHz
Dolphin Revision:3.0, 3.0-784, 3.5, latest 3.5
Find
Reply
10-08-2012, 09:51 AM
#7
lamedude Offline
Senior Member
****
Posts: 360
Threads: 7
Joined: Jan 2011
Haswell is getting Atom's movbe instruction (allows swapping the high and low bits of a long value during a move). Would that be useful here?
Website Find
Reply
10-08-2012, 10:39 AM
#8
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
If it's faster than mov/bswap then it will definitely be useful. I doubt it will be though, will probably be converted to the same uops internally.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
10-08-2012, 01:31 PM
#9
sktsqrl Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 21
Threads: 1
Joined: Jun 2012
Haswell does have many similar improvements (all the "bitwise operations", or however they call them), though, so perhaps the internal implementations will be improved in some way as well.

edit - I mean the added BMI stuff, but the intel site seems to be impossible to search ...
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode