AnsweredAssumed Answered

"Branching" to SVC Handler

Question asked by o.l.001 on Mar 22, 2014
Latest reply on Mar 26, 2014 by o.l.001
MULT
 CMP r1, #1 
 BEQ Finish
 ITTT HS
 SUBHS r1, #1
 MULHS r0, r2
 BLHS MULT

Where I currently have "BEQ Finish" I wish to call an SVC Handler, how can I do this?
I know I can call an SVC handler with SVC 0 , SVC 1 etc.. but how do I do it conditionally like the above statement? I tried "BEQ SVC 0" and I get an unexpected operand statement. Once branching to the handle I never actually want to return to the Multiply function.

Please let me know if what I'm trying to do isn't quite right, I've only just began to learn assembly. 
Thanks!

Outcomes