Question
''Branching'' to SVC Handler
Posted on March 22, 2014 at 18:14
MULT
CMP r1, #1 BEQ Finish ITTT HS SUBHS r1, #1 MULHS r0, r2 BLHS MULTWhere 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!