WRITE THE ASSEMBLY LANGUAGE CODE IN EITHER RISC-V/MIPS
SIMULATOR.
SUBMIT FILE WITH EXTENSION “S” .
Take the screenshot of result and Registers from the
simulator
UPLOAD screenshot and .s file
a.) Write an Assembly language code that takes in two numbers b
and p, and returns the result of below expression.
x= ((b+5) * (p-2) * 10) / 4;
b.) Convert pseudocode given below into Assembly code.
int A[]={4, 8, 12, 16, 20, 24, 28}
int sum=0
for( int i=0;i<7;i++)
{
if i%2==0
{
sum+=A
}
}
WRITE THE ASSEMBLY LANGUAGE CODE IN EITHER RISC-V/MIPS SIMULATOR. SUBMIT FILE WITH EXTENSION “S” . Take the screenshot o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am