Comments (1)
One's component is an operation that reverses the bits of a value. So the one's component of 00111000 is 11000111 by definition, just as the one's complement of 11000111 is 00111000. The operation is its own inverse (just like negation -(-10) = 10).
It has nothing to do with whether the bits represent a positive or negative value. At the assembly level, what the bits represent depend on how the bits are used. For example, 11111111 can represent the signed 8-bit value -1 or the unsigned 8-bit value 255. The CPU has no idea which is correct, it all depends on what instructions are used on the bits. In high level languages like C, you tell the compiler which representation to use by the variable type and the compiler generates the corresponding CPU instructions based on the variable type.
from pcasm.
Related Issues (9)
- Possibility to support 64-bit some day? HOT 3
- `first.asm` code fail to compile under Linux HOT 1
- wrong implemtation in sub_dump_regs which may cause Segmentation fault HOT 1
- Why LE is necessary HOT 1
- Introductory text mentions PowerPC-based Macs HOT 1
- On my ubuntu 16.04 x86_64, the "generate.sh" does not generate *.asm files. HOT 1
- simplified_chinese compile failure HOT 5
- Tips on getting examples working on Windows 10 natively and on WSL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcasm.