Question: Write a C function that is equivalent to the following Pep/9 subroutine 02: ldwa 0,i stwa 10,s ldwx 6,s suba 1,i aslx top: ldwa 2,sfx

Write a C function that is equivalent to the following Pep/9 subroutine 02: ldwa 0,i stwa 10,s ldwx 6,s suba 1,i aslx top: ldwa 2,sfx adda 4,sfx asra cpwa 8,S brle skip ldwa 10,s adda 1,i stwa 10,s skip:subx 2,i brge top ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
