Question: * PLEASE READ CAREFULLY * 1 2 ) translate the following C program to Pep / 9 assembly language #include Const int limit = 5
PLEASE READ CAREFULLY
translate the following C program to Pep assembly language
#include
Const int limit ;
int main
int number;
scanf dnumber;
while number limit
Number ;
Printf d number;
return ;
I have this but it doesnt compile properly:
BR main
Limit: EQUATE ; constant
Number EQUATE ; local variable #d
Main: SUBSP i; push #number
DECI number, s ;scanfd &number
LDWA number, s ;while number
CPWA limit i
BRGE endWh
ADDA l I;number
STWA number, s
DECO number, s ;printfdnumber
LDBA i
STBA CharOut,d
BR while
ADDSP 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
