Question: * PLEASE READ CAREFULLY * 1 2 ) translate the following C program to Pep / 9 assembly language #include Const int limit = 5

*PLEASE READ CAREFULLY*
12) translate the following C program to Pep/9 assembly language
#include
Const int limit =5;
int main (){
int number;
scanf {d,%number);
while (number < limit){
Number ++;
Printf (%d, number);
}
return 0;
}
*****I have this but it doesnt compile properly:
BR main
Limit: .EQUATE 5; constant
Number .EQUATE 0; local variable #2d
Main: SUBSP 2, i; push #number)
DECI number, s ;scanf(%d, &number)
LDWA number, s ;while (number
CPWA limit, i
BRGE endWh
ADDA l, I;number++
STWA number, s
DECO number, s ;printf(%d,number)
LDBA ,i
STBA CharOut,d
BR while
ADDSP 2, i ;pop#number
STOP
.END
**I DO NOT WANT A FORMAT SIMILAR TO THE OTHER ONES I'VE GOTTEN AS MY COMPILER WILL NOT BE ABLE TO COMPILE IT. I WANT SOMETHING EXACTLY IN THE FORMAT I ALREADY HAVE

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!