Difference between revisions of "Signed"

From CDOT Wiki
Jump to: navigation, search
(Created page with 'Category:Computer Architecture A ''signed'' value is a binary value stored in two's compliment representation, where the most significant bit is used as a negative sign. Exa…')
 
Line 1: Line 1:
 
[[Category:Computer Architecture]]
 
[[Category:Computer Architecture]]
 
A ''signed'' value is a binary value stored in two's compliment representation, where the most significant bit is used as a negative sign.
 
A ''signed'' value is a binary value stored in two's compliment representation, where the most significant bit is used as a negative sign.
 +
are Signed used values
  
 
Example: A single unsigned [[Word#Byte|byte]] (8 bits) stores an integer value in the range of 0 to (2^8 - 1 =) 255. If the byte is treated as a signed value, then values from 0-127 (0x00-0x7F) are treated as the positive integers 0-127, and the values 128-255 (0x80-0xFF) are treated as negative integers -128 to -1.
 
Example: A single unsigned [[Word#Byte|byte]] (8 bits) stores an integer value in the range of 0 to (2^8 - 1 =) 255. If the byte is treated as a signed value, then values from 0-127 (0x00-0x7F) are treated as the positive integers 0-127, and the values 128-255 (0x80-0xFF) are treated as negative integers -128 to -1.
 +
 +
Signed address offsets are often used for relative [[Addressing Mode|addressing modes]].

Revision as of 12:14, 8 January 2014

A signed value is a binary value stored in two's compliment representation, where the most significant bit is used as a negative sign. are Signed used values

Example: A single unsigned byte (8 bits) stores an integer value in the range of 0 to (2^8 - 1 =) 255. If the byte is treated as a signed value, then values from 0-127 (0x00-0x7F) are treated as the positive integers 0-127, and the values 128-255 (0x80-0xFF) are treated as negative integers -128 to -1.

Signed address offsets are often used for relative addressing modes.