Domanda sui ruoli dei data register

di il
2 risposte

Domanda sui ruoli dei data register

Ciao ,

Da un tutorial sto leggendo :
Some of these data registers has specific used in arithmetical operations.

AX is the primary accumulator; it is used in input/output and most arithmetic instructions. For example, in
multiplication operation, one operand is stored in EAX, or AX or AL register according to the size of the operand.

BX is known as the base register as it could be used in indexed addressing.

CX is known as the count register as the ECX, CX registers store the loop count in iterative operations.

DX is known as the data register. It is also used in input/output operations. It is also used with AX register along
with DX for multiply and divide operations involving large values
Sono queste regole ferree basate sull'hardware o sono solo un' abitudine?

quando leggo :
it could be used
mi sembra un condizionale

Ad esempio volessi utilizzare CX al posto di BX , potrei farlo?

2 Risposte

  • Re: Domanda sui ruoli dei data register

    L'uso dei registri è fortemente influenzato dal ser delle istruzioni assembly disponibili. Nel caso indicato hai una certa libertà nell'uso dei registri ma è molto limitata quando dovrai usare delle istruzioni che ti imporranno un certo modo di agire.

    Studia il ser di istruzioni e capirai.
  • Re: Domanda sui ruoli dei data register

    Ok grazie
Devi accedere o registrarti per scrivere nel forum
2 risposte