View Single Post
Old November 22nd, 2003   #1 (permalink)
psycho_cyclone
Ar-digital Intelligence
 
psycho_cyclone's Avatar
 
Join Date: Nov 2003
Location: PC heaven
Posts: 53
Question HELP... CPU instructions, Little-Endian or Big-Endian?

please help,
i'm writing a PS2 emu and i just came to the part of interpreting CPU instructions, i want to extract, for instance, the opcode num from the instruction set, BUT:
should i treat the instruction as Little-Endian byte order, or Big-Endian?
i mean, for instance, is the opcode in the FIRST byte in the ELF file, or in the FOURTH one???
PLEASE help me out! thanx.
__________________

My system:
[Motherboard:] Gigabyte 8IPE1000Pro-G (Intel 865PE chipset)
[Processor:] Intel Pentium 4 2.80E (FSB800, 1MB cache, HyperThreading support)
[RAM:] 512MB DDR400
[Video card:] nVidia GeForce FX 5900 Ultra 256MB DDR (ASUS V9950 Ultra)
[Hard drive:] 80GB Seagate Barracuda 7200.7
psycho_cyclone is offline   Reply With Quote