Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amelius
on June 24, 2023
|
parent
|
context
|
favorite
| on:
Finally getting two's complement
Yes and the formula to negate x can be simplified to:
0x100 - x
dropping the 9th bit (assuming 8 bit)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
0x100 - x
dropping the 9th bit (assuming 8 bit)