milvapp
Member level 5
- Joined
- Apr 17, 2010
- Messages
- 88
- Helped
- 3
- Reputation
- 6
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- chania greece
- Activity points
- 1,882
In terms of hardware is there any possible way to implement a branch instruction (beq,bne etc)
without using flags?
For example BEQ R1 R2 label if R1=R2 branches to label.
I substract R1-R2 at the ALU but how can I check that the result is zero ?
P.S. Please dont tell me compare it with a dummy register containing the value 0
because I conclude to the same point
Thank you in advance.
without using flags?
For example BEQ R1 R2 label if R1=R2 branches to label.
I substract R1-R2 at the ALU but how can I check that the result is zero ?
P.S. Please dont tell me compare it with a dummy register containing the value 0
because I conclude to the same point
Thank you in advance.