Difference between revisions of "Endian"

From Cheat Engine
Jump to navigation Jump to search
m (Minor fix)
Line 1: Line 1:
 
Little Endian:
 
Little Endian:
Values are written with the least significat bit first followed by more significant bytes
+
Values are written with the least significant bit first followed by more significant bytes.
  
 
Big Endian:
 
Big Endian:
The most significant byte is written first, followed by lesser significant bytes
+
The most significant byte is written first, followed by lesser significant bytes.
  
  
 
Example with the value 300 (0x0000012c):
 
Example with the value 300 (0x0000012c):
  
little endian: 0x2c 0x01 0x00 0x00
+
Little Endian: 0x2c 0x01 0x00 0x00
  
big endian: 0x00 0x00 0x01 0x2c
+
Big Endian: 0x00 0x00 0x01 0x2c
  
  
x86 uses the little endian way of notation, the only times you can encounter it on a computer is when using an emulator that doesn't the swap automatically (Some emulators do the conversion of big endian to little endian internally to speed up emulation)
+
x86 uses the Little Endian way of notation, the only times you can encounter it on a computer is when using an emulator that doesn't do the swap automatically (Some emulators do the conversion of Big Endian to Little Endian internally to speed up emulation).
  
  
  
 
== Cheat Engine and Big Endian ==
 
== Cheat Engine and Big Endian ==
Cheat engine does not current support big endian by default, but it is possible to write a custom scan script that converts the value to be checked to little endian before it is compared against user input
+
Cheat engine does not currently support Big Endian by default, but it is possible to write a custom scan script that converts the value to be checked to Little Endian before it is compared against user input.
  
Another method that might be easier, would be to use 1 byte scan values only
+
Another method that might be easier, would be to use 1 byte scan values only.

Revision as of 09:08, 18 September 2009

Little Endian: Values are written with the least significant bit first followed by more significant bytes.

Big Endian: The most significant byte is written first, followed by lesser significant bytes.


Example with the value 300 (0x0000012c):

Little Endian: 0x2c 0x01 0x00 0x00

Big Endian: 0x00 0x00 0x01 0x2c


x86 uses the Little Endian way of notation, the only times you can encounter it on a computer is when using an emulator that doesn't do the swap automatically (Some emulators do the conversion of Big Endian to Little Endian internally to speed up emulation).


Cheat Engine and Big Endian

Cheat engine does not currently support Big Endian by default, but it is possible to write a custom scan script that converts the value to be checked to Little Endian before it is compared against user input.

Another method that might be easier, would be to use 1 byte scan values only.