Actions

Difference between revisions of "Signed"

From Sonic Retro

(Added page.)
 
(Redirected page to sega:Two's complement)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
+
#REDIRECT [[sega:Two's complement]]
When using the signed hexadecimal number system in programming (such as [[68000]] assembly), the values '''$81''' to '''$FF''' are interpreted as '''-$7F''' to '''-$01''' respectively. This is simpler than actually prefixing a number with the minus symbol "-".
 
 
 
Conversely, the '''unsigned''' number system has no negatives. So '''$81''' is read simply as '''$81'''.
 

Latest revision as of 20:10, 28 April 2015