WRITE THE ASSEMBLY LANGUAGE CODE IN EITHER RISC-V/MIPS SIMULATOR. SUBMIT FILE WITH EXTENSION “S” . Take the screenshot o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

WRITE THE ASSEMBLY LANGUAGE CODE IN EITHER RISC-V/MIPS SIMULATOR. SUBMIT FILE WITH EXTENSION “S” . Take the screenshot o

Post by answerhappygod »

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
}
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply