Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Pep/9 subroutine below is a translation of the following C function Int mult (int a, int b) If (b-0) return O; If (b-1) return
The Pep/9 subroutine below is a translation of the following C function Int mult (int a, int b) If (b-0) return O; If (b-1) return a; Return a+mult(a,b-1); Add appropriate comments to the three highlighted sections. mult: ldwa 4, s breq ret0 cpwa 1,i breg reta subsp 6,i ldwa 8,s stwa 0,s ldwa 10,s suba 1,i stwa 2,s call mult ldwa 4,s adda 8,s stwa 12,s addsp 6, i ret ret0: stwa 6, s ret reta: ldwa 2,s stwa 6, s ret
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started