Assembly Language question

Status
Not open for further replies.

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.
 

Look up the assembler pseudo-mnemonic BZ or used BSTFC status,2>goto... Personally, I think writing it out , rather than using the pseudo-mnemonic is better. Of course, after the subtraction that yields zero.

John
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…