Write a C function that is equivalent to the following Pep/9 subroutine. Q1: subsp 2,i ldwa 0,i stwa 0,s ldwx 0, i L: 1dba 4,sfx breq done cpba 6,s brlt endif cpba 7,s brgt endif ldwa 0,s adda 1,i stwa 0,s endif : ada 1’i br L done: ldwa 0, s stwa 8, s addsp 2, i ret Show transcribed image text Write a C function that is equivalent to the following Pep/9
OR
OR