simple test want negative index

50 views
Skip to first unread message

Bianca M

unread,
Oct 28, 2020, 8:54:59 AM10/28/20
to cmpt-295-sfu

SFU ID: 301366608
Github username: biancago
Line and file: simple1.test simple2.test
Expected behavior: pass the test
Observed behavior: shows that I need to return a negative index, my main.s in printing positive index but for some reason it says I need a negative one
Question: Did I do something wrong with my simple file





Bianca M

unread,
Oct 28, 2020, 11:57:57 AM10/28/20
to cmpt-295-sfu
I checked my simple file refs and they are exactly the same as my output confused whats going on

Arrvindh Shriraman

unread,
Oct 28, 2020, 1:27:39 PM10/28/20
to cmpt-295-sfu
Not sure when you say "index" what you mean.
The only commit we see online is from 8 days ago.

Please include comments in your assembly code
1) What are the input arguments to each method or routine
2) What is each register mapping
3) Include some C code to indicate what you are expecting the code to be doing


A figure would be helpful

Bianca M

unread,
Oct 28, 2020, 4:37:06 PM10/28/20
to cmpt-295-sfu
I've pushed my code numerous times it should be updated, on line 214 in main.s my input is 
a pointer to an array and its length to argmax then the output is the index of the biggest number.
It's printing correctly but tester2_python3 says that it is not the same as the ref file saying the ref file is -1 and my input is +1

Arrvindh Shriraman

unread,
Oct 28, 2020, 5:52:17 PM10/28/20
to cmpt-295-sfu

Can you specify the exact command you run:
 I cloned your repo and ran 
source ./scripts/localci.sh

You seem to have completed the assignment.
Is there something I am missing.
The commit I see is this: commit d3814300a34fe5d56d9e9cb89b2c5d3b6273c002

Arrvindh Shriraman

unread,
Oct 28, 2020, 5:52:37 PM10/28/20
to cmpt-295-sfu
Your travis also seems to have passed.
Reply all
Reply to author
Forward
0 new messages