Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

0 votes

Comparing Registers with 16-bits

ZF and CF are computed by the instruction and stored in some "status register". They can later be used by conditional jumps. ZF is the "zero" flag and CF the "less than" ...
user avatar
  • 3,437
0 votes

Comparing Registers with 16-bits

It's not entirely clear to me what you need to design. You seem to have quoted a part of a description of a ready ISA. In your description the CMP instruction takes two arguments, i.e. the two ...
user avatar
0 votes

Are all CPU computations done using registers?

First, there are many more registers in a modern CPU than the ones that are visible to the program. Your iPhone has about 500 of each type of register per CPU; they are needed to perform out-of-order ...
user avatar
  • 24.9k
1 vote

Are all CPU computations done using registers?

Yes and no. Ignoring special-purpose CPUs (e.g. stack machines, which still matter), most instruction set architectures (ISA for short) fall into one of two fuzzy categories: Load/store architectures,...
user avatar
  • 18.8k

Top 50 recent answers are included