Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*

SubjectRe: Amiga 500 --> PC Reply to this message
Posted bynikoniko1975
Posted on11/07/05 06:49 PM

I'm trying to code an
> emulator for) that swaps the cointained bytes (LO-to-HI).
> what is the easiest way to deal with this ? I've got somwhat confused for the
> past ours to be honest.

If you use a little inline assembly, you could take advantage of the x86's BSWAP instruction. It changes the byte order of a 32-bit register from big endian to little endian and vice-versa.

Entire Thread
Subject  Posted byPosted On
*Amiga 500 --> PC  amilator09/17/05 09:05 AM
..Re: Amiga 500 --> PC  nikoniko197511/07/05 06:49 PM
.*Re: Amiga 500 --> PC  Bart T.09/18/05 01:46 PM
..*Re: Amiga 500 --> PC  amilator09/22/05 08:22 AM
..*Re: Amiga 500 --> PC  smf09/21/05 03:25 AM
...*Re: Amiga 500 --> PC  amilator09/22/05 08:27 AM