![]() |
.. (לתיקייה המכילה) | |
Wet part - Should we write the result to a label named 'Output' as in ex2? | |
Yes. Exactly the same way as in ex2. As written in the exercise, all the instructions from ex2 still hold (unless it is said otherwise). |
Wet part - In routines that get parameters in shared memory, can we access the program input labels directly or should we copy them to a different place in the memory? | |
You can access them directly. |
We part - Should we write our 'main' routine also or only the specified routines? | |
You should write and submit the main part of your program. What you submit this time is pretty similar to what you have submitted in the previous exercise, except that your code is now divided into routines (and except, of course, the color addition). |
We part - The RowNums and ColNums lists should end with a zero also, or only zeroes between every two rows/columns? | |
It is guaranteed that they also end with a zero. There was a mistake in the RowNums label in the first published version of the exercise, and it should now be fixed. |
We part - Why didn't you specify which register to use as linkage in the routines that receive inline parameters? | |
In contrary to what was written here before - you should use a specific register. Use r5 for methods that receive an inline parameter. Use pc for the rest. |
Can we add more output variables to the specified methods? | |
No. Please return only the specified value. Of course, as written in the exercise, you are advised to use the return value of the method chBlock and chRowCol to pass extra information (like an address in the memory, instead of just 0 or 1). |