mac.input failing to run

43 views
Skip to first unread message

Adam

unread,
Oct 9, 2020, 3:13:59 PM10/9/20
to cmpt-295-sfu

SFU ID: 301348922
Github username:adamatbi
Line and file: 
Expected behavior: running mac.input
Observed behavior: when i try to run mac.input it prints nothing and shows it as failed. 
Question:
im finding it hard to find the cause without being able to see the output. is there some simple mistake im making that would cause this? i put a PC+=4 in the same place that the teacher did in the lab video


unknown.png

Parmida Vahdatnia

unread,
Oct 9, 2020, 4:22:00 PM10/9/20
to cmpt-295-sfu
your PC handling is wrong. think of it as "for each instruction how much should it be incremented and where"

Adam

unread,
Oct 9, 2020, 4:28:30 PM10/9/20
to cmpt-295-sfu
should i implement it in each execute_*** function or every switch case? 

I'm not sure if instructions of the same type would have different requirements or if their all the same as long as the *type is the same

Parmida Vahdatnia

unread,
Oct 9, 2020, 7:02:34 PM10/9/20
to cmpt-295-sfu
watch the videos the concept of pc is covered there 
Reply all
Reply to author
Forward
0 new messages