Question: #include int main ( ) { int i = 0 ; int h [ 9 ] = { 0 } , x [ 6 ]
#include
int main
int i ;
int h x y;
FILE input fopeninputtxtr;
fori ; i ; i fscanfinputd &hi;
fori ; i ; i fscanfinputd ξ
fori ; i ; i fscanfinputd &yi;
fcloseinput;
int px &x;
int ph &h;
int py &y;
asm volatile
add arrayHarrayHpoint
t
add arrayXarrayXpoint
t
"Loop:
t
add countzerozero
t
add countcountone
t
add arrayHarrayHpoint
t
add arrayXarrayXpoint
t
beq countfourExit
t
"Loop:
t
add countzerozero
t
add resultzerozero
t
"Loop:
t
lw tempXarrayX
t
lw tempHarrayH
t
mul temptempXtempH
t
add resultresulttemp
t
add countcountone
t
add arrayHarrayHfour
t
add arrayXarrayXfour
t
add arrayXarrayXfour
t
bne countthreeLoop
t
sw resultarray
t
add arrayarrayfour
t
add countcountone
t
add arrayHarrayHpoint
t
add arrayXarrayXpoint
t
bne counttwoLoop
t
beq counttwoLoop
t
"Exit:
t
: arrayrpy
: pointronerfourrtemprarrayXrpxarrayHrphcountrthreertempXrirtempHrcountrresultrzerorcountrpointrtworpointrpointrpointr
;
py &y;
fori ; i ; i
printfd py;
printf
;
return ;
can somebody explain this code and please explain it using a table or matrix
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
