Originally posted by antime@Jun 20, 2004 @ 05:19 PM
I have a feeling of deja-vu. If you're quoting it's considered polite to at least name the source.
The problem is that you don't know anything about the data being accessed.
Originally posted by ExCyber@Jun 21, 2004 @ 02:20 AM
Nor should you need to; that's the program's job. The emulator's job is to make sure everything shows up where the program expects it.
Originally posted by antime@Jun 21, 2004 @ 10:21 AM
The point is that you have no way of knowing if the program is loading a 32-bit constant or four independent bytes. In the latter case there's a good chance their order matters and swapping the bytes around won't work.
Originally posted by Mask of Destiny@Jun 21, 2004 @ 06:13 PM
Sure it will, you just need to modify the byte writes to account for the byteswapping.
There are occasions where data loaded and stored as words or doublewords absolutely must retain the same byte order.
Originally posted by antime@Jun 21, 2004 @ 04:27 PM
You misunderstand. There are occasions where data loaded and stored as words or doublewords absolutely must retain the same byte order. Unless you do the swapping twice (once when loading, again when storing) you will mess up the data.
Originally posted by ExCyber+Jun 21, 2004 @ 07:54 PM--><div class='quotetop'>QUOTE(ExCyber @ Jun 21, 2004 @ 07:54 PM)</div><div class='quotemain'>Have any examples? I can't think of anything apart from talking to actual VDP1/VDP2/SCU/SCSP chips.[/b]