Can ALU Input be register?

  • #1
8
0
In CPU ALU (arithmetic logic unit ) has two input.
If one of the input has following Input LDA #23 this input will be stored in eax register.
mov eax, 23d
when do i need to use 2 of these input? Can any of this input be a Register ?
 
Last edited:

Answers and Replies

  • #2
2,042
311
If you talk about eax, I suppose you're talking about an intel 80386 or a successor. With this processor you can use a register, memory or an immediate operand for both operands of the alu, or for the destination. but only one memory operand for each instruction.
you can do: add eax, 117 or add ecx, ebx or add eax, [esi] or add [memory_address],12
but not add [memory_address1],[memory_address2]
 

Related Threads on Can ALU Input be register?

  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
2
Views
11K
Replies
9
Views
23K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
3
Views
866
Replies
6
Views
1K
Replies
1
Views
5K
Replies
3
Views
4K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
3K
Top