Question: Why do we need an infinite loop at the end of the program? Setup clr.w R4 ;clear all old registers from clr.w R5 clr.w R6

Why do we need an infinite loop at the end of the program?

Setup clr.w R4 ;clear all old registers from

clr.w R5 clr.w R6

clr.w R7 clr.w R10

mov.w #04, R4 ;set up registered values

mov.w #05, R5

mov.w #07,

R6 mov.w #15,R10

Addition mov.w R4, R7 ;add R4 to R7 = 4

add.w R5, R7 ;add R5 to R7 = 9

add.w R6, R7 ; add R6 to R7 = 16

Subtraction sub.w R10, R7 ; subtract R10 from R7 = 1

Store mov.w R4, &0200h

mov.w R5, &0202h

mov.w R6, &0204h

mov.w R10, &0206h

mov.w R7, &0208h

Mainloop jmp Mainloop ; Infinite Loop

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 Databases Questions!