Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
hexadecimal or base-16 - a counting system in which each digit can take on one of 16 values, usually using the symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Often used in computer programming because each digit maps directly to a group of 4 binary digits (bits).
4
votes
Accepted
Hexadecimal two's Complement
Ignacio showed the shortcut: sign-extension.
What you attempted is OK too, and it shows that you try to understand the process: convert to a 'plain value' then convert back to two's complement. But y …
3
votes
Need help with digital arithmetic
For your processor, the 8 bits in a value can be interpreted in two ways:
as an unsigned number, range 0 .. 255
as a 2s-complement number, range -128 .. +127
(There are other ways an 8-bit value c …