Question: exercises _ ex _ 1 . s - Exercise looping constructs Convert the following C program to assembly. Test code checks it . 1 void

exercises_ex_1.s - Exercise looping
constructs
Convert the following C program to assembly. Test code checks it.
1 void exercises_ex_1(void){
2 while ( u16_a && (u16_b 100)){
3 loop_tester();
4}
5}// End.
Code
.text
;; void exercises_ex_1(void){
_exercises_ex_1:
.global _exercises_ex_1
loop_start:
mov W0, u16_a
cp W0, #0
bra loop_end
mov W1, u16_b
cp W1, #100
bra loop_end
call _loop_tester
bra loop_start
loop_end:
exercises _ ex _ 1 . s - Exercise looping

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!