Question: a)convert the program below to a C program. b)Will the register map be the same as that above? why or why not? constant address of
constant address of 10 switches # constant address of 10 LEDs I . equ switches, Ox2010 .equ leds, Ox2000 1.global start start: movia r2, leds movia r3, switches LOOP: 1dbio r4, O (r3) ldhio r5, 0 (r3) br LOOP .end constant address of 10 switches # constant address of 10 LEDs I . equ switches, Ox2010 .equ leds, Ox2000 1.global start start: movia r2, leds movia r3, switches LOOP: 1dbio r4, O (r3) ldhio r5, 0 (r3) br LOOP .end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
