Difference between revisions of "Help File:Unsigned values"

From Cheat Engine
Jump to navigation Jump to search
(Created page with '{| width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFCEA" | align="left" |<font face="Arial" color="#010101" class="Arial3"><b>(Un)Signed value(s)</b>…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{|  width="100%"  border="0"  cellspacing="0"  cellpadding="2"  bgcolor="#FFFCEA"
+
[[Category:Help]]
|  align="left" |<font face="Arial"  color="#010101"  class="Arial3"><b>(Un)Signed value(s)</b></font>
+
In short, a value can hold a negative value if it is a signed value.
|}<hr><font class="Arial1"><br>
+
This is done by inverting all the bits. All 0's become 1's and 1's become 0's. Then the resulting value is incremented by 1.
In short, a value can hold a negative value if it is a signed value.<br>
+
 
This is done by inverting all the bits. All 0's become 1's and 1's become 0's. Then the resulting value is  
+
example:
incremented by 1.<br><br>
+
  12 = 00001100
example:<br>
+
invert = 11110011
&nbsp;&nbsp;&nbsp;&nbsp; 12 = 00001100<br>
+
  -12 = 11110100 (notice that if this was an unsigned value this would be 244; because 256-12=244)
invert = 11110011<br>
+
 
&nbsp;&nbsp; -12 = 11110100 (notice that if this was an unsigned value this would be 244; because 256-12=244)<br></font>
+
== Links ==
 +
* [[Cheat Engine:Help File|Help File]]
 +
 
 +
* [[Help_File:Big_endian_4_byte|Back]]
 +
 
 +
* [[Help_File:Found_address_list|Next]]

Latest revision as of 12:14, 19 March 2017

In short, a value can hold a negative value if it is a signed value. This is done by inverting all the bits. All 0's become 1's and 1's become 0's. Then the resulting value is incremented by 1.

example:

  12 = 00001100

invert = 11110011

 -12 = 11110100 (notice that if this was an unsigned value this would be 244; because 256-12=244)

Links[edit]